user32/tests: Fix DrawMenuBar test failures.
This commit is contained in:
parent
1a988fa465
commit
179957d5a9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue