Add message test for DrawMenuBar
Dmitry Timoshkov
dmitry at baikal.ru
Mon May 24 09:21:02 CDT 2004
Hello,
this test shows that our implementation of SetWindowPos(SWP_FRAMECHANGED)
doesn't actually redraw a window.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Add message test for DrawMenuBar.
--- cvs/hq/wine/dlls/user/tests/msg.c Thu May 20 16:17:51 2004
+++ wine/dlls/user/tests/msg.c Mon May 24 18:07:52 2004
@@ -572,6 +572,17 @@ static const struct message WmSetMenuVis
{ WM_WINDOWPOSCHANGED, sent|wparam, 0 },
{ 0 }
};
+/* DrawMenuBar for a visible window */
+static const struct message WmDrawMenuBarSeq[] =
+{
+ { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
+ { WM_NCCALCSIZE, sent|wparam, 1 },
+ { WM_NCPAINT, sent|wparam, 1 },
+ { WM_GETTEXT, sent|defwinproc|optional },
+ { WM_ERASEBKGND, sent|optional },
+ { WM_WINDOWPOSCHANGED, sent|wparam, 0 },
+ { 0 }
+};
static const struct message WmSetRedrawFalseSeq[] =
{
@@ -891,6 +902,9 @@ static void test_messages(void)
ok_sequence(WmSetMenuVisibleNoSizeChangeSeq, "SetMenu:VisibleNoSizeChange");
ok (SetMenu(hwnd, hmenu), "SetMenu\n");
ok_sequence(WmSetMenuVisibleSizeChangeSeq, "SetMenu:VisibleSizeChange");
+
+ ok(DrawMenuBar(hwnd), "DrawMenuBar\n");
+ ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar");
DestroyWindow(hwnd);
}
More information about the wine-patches
mailing list