user32/tests: Ignore WM_PAINT messages in GetMessagePos test.

This commit is contained in:
Alexandre Julliard 2015-02-24 16:19:26 +09:00
parent 75a2e85a27
commit 4e87b952b3
1 changed files with 5 additions and 0 deletions

View File

@ -8032,6 +8032,11 @@ static void test_GetMessagePos(void)
SetTimer(button, 1, 250, NULL);
SetCursorPos(330, 350);
GetMessageA(&msg, button, 0, 0);
while (msg.message == WM_PAINT)
{
UpdateWindow( button );
GetMessageA(&msg, button, 0, 0);
}
ok(msg.message == WM_TIMER, "msg.message = %x\n", msg.message);
pos = GetMessagePos();
todo_wine ok(pos == MAKELONG(330, 350), "pos = %08x\n", pos);