mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 02:19:24 +01:00
don't allow games to hide the taskbar
This commit is contained in:
parent
8f12004d67
commit
815deee85d
@ -532,6 +532,12 @@ int WINAPI fake_MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UI
|
|||||||
|
|
||||||
BOOL WINAPI fake_ShowWindow(HWND hWnd, int nCmdShow)
|
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)
|
if (g_ddraw.ref && g_ddraw.hwnd == hWnd)
|
||||||
{
|
{
|
||||||
/* Make sure we got close/move menu items (Almost all of the The Learning Company games) */
|
/* Make sure we got close/move menu items (Almost all of the The Learning Company games) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user