Commit 179957d5 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32/tests: Fix DrawMenuBar test failures.

parent 1a988fa4
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment