Vitaliy Margolen : user32: Add test for SetForegroundWindow(desktop).
Module: wine Branch: master Commit: 9380eb31278796cdd7e5a7dcdac156477aaa6443 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9380eb31278796cdd7e5a7dcda... Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Fri Jul 20 07:15:36 2007 -0600 user32: Add test for SetForegroundWindow(desktop). --- dlls/user32/tests/win.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index dc179f1..b5d2ad5 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -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);
participants (1)
-
Alexandre Julliard