user32: Return at the end of processing (cmd == SW_HIDE).

This commit is contained in:
Anatoly Lyutin 2008-06-19 16:15:58 +04:00 committed by Alexandre Julliard
parent 283012cc95
commit 8fb730543d
2 changed files with 2 additions and 1 deletions

View File

@ -4112,7 +4112,7 @@ static void test_messages(void)
ok(GetActiveWindow() == hwnd, "window should be active\n");
ok(GetFocus() == hwnd, "window should have input focus\n");
ShowWindow(hwnd, SW_HIDE);
ok_sequence(WmHideOverlappedSeq, "ShowWindow(SW_HIDE):overlapped", TRUE);
ok_sequence(WmHideOverlappedSeq, "ShowWindow(SW_HIDE):overlapped", FALSE);
ShowWindow(hwnd, SW_SHOW);
ok_sequence(WmShowOverlappedSeq, "ShowWindow(SW_SHOW):overlapped", TRUE);

View File

@ -1073,6 +1073,7 @@ static BOOL show_window( HWND hwnd, INT cmd )
if (parent == GetDesktopWindow()) parent = 0;
SetFocus(parent);
}
return wasVisible;
}
if (IsIconic(hwnd)) WINPOS_ShowIconTitle( hwnd, TRUE );