Commit 9380eb31 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

user32: Add test for SetForegroundWindow(desktop).

parent b5a61cb4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment