Add message test for DrawMenuBar.

This commit is contained in:
Dmitry Timoshkov 2004-05-24 19:08:54 +00:00 committed by Alexandre Julliard
parent 9df137b84a
commit 97ea6fffde
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}