Skip to content

Commit

Permalink
don't allow games to hide the taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 29, 2024
1 parent 8f12004 commit 815deee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 815deee

Please sign in to comment.