user32/tests: Fix DrawMenuBar test failures.

This commit is contained in:
Piotr Caban 2014-04-15 15:01:10 +02:00 committed by Alexandre Julliard
parent 1a988fa465
commit 179957d5a9
1 changed files with 5 additions and 0 deletions

View File

@ -4559,6 +4559,7 @@ static void test_messages(void)
HMENU hmenu;
MSG msg;
LRESULT res;
POINT pos;
flush_sequence();
@ -4819,6 +4820,9 @@ static void test_messages(void)
after_end_dialog = FALSE;
test_def_id = FALSE;
ok(GetCursorPos(&pos), "GetCursorPos failed\n");
ok(SetCursorPos(109, 109), "SetCursorPos failed\n");
hwnd = CreateWindowExA(0, "TestDialogClass", NULL, WS_POPUP|WS_CHILD,
0, 0, 100, 100, 0, 0, GetModuleHandleA(0), NULL);
ok(hwnd != 0, "Failed to create custom dialog window\n");
@ -4832,6 +4836,7 @@ static void test_messages(void)
ok(DrawMenuBar(hwnd), "DrawMenuBar failed: %d\n", GetLastError());
flush_events();
ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar", FALSE);
ok(SetCursorPos(pos.x, pos.y), "SetCursorPos failed\n");
DestroyWindow(hwnd);
flush_sequence();