user32/tests: Added SetWindowPos test that incorrectly sets focus.

This commit is contained in:
Piotr Caban 2012-05-18 15:52:50 +02:00 committed by Alexandre Julliard
parent 54e8bc8434
commit 42eb57dfa7
1 changed files with 8 additions and 0 deletions

View File

@ -2157,6 +2157,14 @@ static void test_SetWindowPos(HWND hwnd, HWND hwnd2)
DestroyWindow(hwnd_grandchild);
DestroyWindow(hwnd_child);
DestroyWindow(hwnd_child2);
hwnd_child = create_tool_window(WS_CHILD|WS_POPUP|WS_SYSMENU, hwnd2);
ok(!!hwnd_child, "Failed to create child window (%d)\n", GetLastError());
ret = SetWindowPos(hwnd_child, NULL, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE|SWP_SHOWWINDOW);
ok(ret, "Got %d\n", ret);
flush_events( TRUE );
todo_wine check_active_state(hwnd2, hwnd2, hwnd2);
DestroyWindow(hwnd_child);
}
static void test_SetMenu(HWND parent)