mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[WIN32SS][USER32] Fix SwitchToThisWindow (#929)
I'm not sure but it seems like no one can investigate it. I commit it.
This commit is contained in:
parent
2410bcb133
commit
62da624689
|
@ -85,13 +85,13 @@ SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
|
|||
if (fAltTab)
|
||||
{
|
||||
if (IsIconic(hwnd))
|
||||
ShowWindowAsync(hwnd, SW_RESTORE);
|
||||
PostMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||
SetForegroundWindow(hwnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
hwndFG = GetForegroundWindow();
|
||||
ShowWindow(hwnd, SW_RESTORE | SW_SHOWNA);
|
||||
PostMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||
SetWindowPos(hwnd, hwndFG, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||
SetWindowPos(hwndFG, hwnd, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue