Add a test for focus change on ShowWindow(child, SW_HIDE)
Dmitry Timoshkov
dmitry at baikal.ru
Mon May 24 09:18:54 CDT 2004
Hello,
this test passes under Wine.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Add a test for focus change on ShowWindow(child, SW_HIDE).
--- cvs/hq/wine/dlls/user/tests/win.c Thu May 20 16:17:51 2004
+++ wine/dlls/user/tests/win.c Mon May 24 17:55:05 2004
@@ -1604,6 +1604,15 @@ static void test_SetFocus(HWND hwnd)
ok( GetFocus() == child, "Focus should be on child %p\n", child );
SetWindowPos(child,0,0,0,0,0,SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_HIDEWINDOW);
ok( GetFocus() == child, "Focus should still be on child %p\n", child );
+
+ ShowWindow(child, SW_HIDE);
+ SetFocus(hwnd);
+ ok( GetFocus() == hwnd, "Focus should be on parent %p, not %p\n", hwnd, GetFocus() );
+ SetWindowPos(child,0,0,0,0,0,SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW);
+ ok( GetFocus() == hwnd, "Focus should still be on parent %p, not %p\n", hwnd, GetFocus() );
+ ShowWindow(child, SW_HIDE);
+ ok( GetFocus() == hwnd, "Focus should still be on parent %p, not %p\n", hwnd, GetFocus() );
+
DestroyWindow( child );
}
More information about the wine-patches
mailing list