minimize on WM_AUTORENDERER (windows only)
This commit is contained in:
parent
f5698f2d0b
commit
77ac049c41
1 changed files with 6 additions and 3 deletions
|
@ -660,10 +660,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_AUTORENDERER:
|
case WM_AUTORENDERER:
|
||||||
{
|
{
|
||||||
mouse_unlock();
|
mouse_unlock();
|
||||||
SetWindowPos(ddraw->hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
SetWindowPos(ddraw->hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||||
SetWindowPos(ddraw->hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
SetWindowPos(ddraw->hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||||
//ShowWindow(ddraw->hWnd, SW_MINIMIZE);
|
if (!ddraw->wine)
|
||||||
//ShowWindow(ddraw->hWnd, SW_RESTORE);
|
{
|
||||||
|
ShowWindow(ddraw->hWnd, SW_MINIMIZE);
|
||||||
|
ShowWindow(ddraw->hWnd, SW_RESTORE);
|
||||||
|
}
|
||||||
mouse_lock();
|
mouse_lock();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue