Fixed minimize bug with always on top enabled

This commit is contained in:
pagefault
2001-05-07 21:56:13 +00:00
parent ab4f2683be
commit e40dc93868

View File

@@ -207,11 +207,15 @@ extern "C" void CheckAlwaysOnTop()
else SetWindowPos(hMainWindow, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}
BOOL IsMinimized = FALSE;
extern "C" void MinimizeWindow()
{
if (AlwaysOnTop == 1) SetWindowPos(hMainWindow, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
MoveWindow(hMainWindow, 0, 0, 0, 0, TRUE);
InputDeAcquire();
SetActiveWindow(0);
IsMinimized = TRUE;
}
BOOL InputRead(void)
@@ -430,6 +434,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
initwinvideo();
}
if (IsMinimized == TRUE && AlwaysOnTop == 1) CheckAlwaysOnTop();
InputAcquire();
break;
case WM_SETFOCUS: