From 815deee85deb8ae05bb4c1ef19281616fd749fe2 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 29 May 2024 05:54:28 +0200 Subject: [PATCH] don't allow games to hide the taskbar --- src/winapi_hooks.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index af89ac0..aecb9aa 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -532,6 +532,12 @@ int WINAPI fake_MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UI BOOL WINAPI fake_ShowWindow(HWND hWnd, int nCmdShow) { + /* Don't hide the taskbar (Some of The Learning Company games) */ + if (nCmdShow == SW_HIDE && hWnd && hWnd != g_ddraw.hwnd && hWnd == FindWindowA("Shell_TrayWnd", NULL)) + { + return TRUE; + } + if (g_ddraw.ref && g_ddraw.hwnd == hWnd) { /* Make sure we got close/move menu items (Almost all of the The Learning Company games) */