From 97ea6fffde09309da55ecdb8ddf44a8d2ffe4ba2 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 24 May 2004 19:08:54 +0000 Subject: [PATCH] Add message test for DrawMenuBar. --- dlls/user/tests/msg.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dlls/user/tests/msg.c b/dlls/user/tests/msg.c index 2bbcfe8cf40..d38a9f23c5d 100644 --- a/dlls/user/tests/msg.c +++ b/dlls/user/tests/msg.c @@ -572,6 +572,17 @@ static const struct message WmSetMenuVisibleNoSizeChangeSeq[] = { { 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[] = { @@ -892,6 +903,9 @@ static void test_messages(void) ok (SetMenu(hwnd, hmenu), "SetMenu\n"); ok_sequence(WmSetMenuVisibleSizeChangeSeq, "SetMenu:VisibleSizeChange"); + ok(DrawMenuBar(hwnd), "DrawMenuBar\n"); + ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar"); + DestroyWindow(hwnd); }