user32: Add test for SetForegroundWindow(desktop).

This commit is contained in:
Vitaliy Margolen 2007-07-20 07:15:36 -06:00 committed by Alexandre Julliard
parent b5a61cb492
commit 9380eb3127
1 changed files with 9 additions and 0 deletions

View File

@ -2211,6 +2211,15 @@ static void test_SetForegroundWindow(HWND hwnd)
SetWindowPos(hwnd,0,0,0,0,0,SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_SHOWWINDOW);
check_wnd_state(hwnd, hwnd, hwnd, 0);
hwnd2 = GetForegroundWindow();
ok(hwnd2 == hwnd, "Wrong foreground window %p\n", hwnd2);
todo_wine
{
ok(SetForegroundWindow( GetDesktopWindow() ), "SetForegroundWindow(desktop) error: %d\n", GetLastError());
hwnd2 = GetForegroundWindow();
ok(hwnd2 != hwnd, "Wrong foreground window %p\n", hwnd2);
}
ShowWindow(hwnd, SW_HIDE);
check_wnd_state(0, 0, 0, 0);