user32/tests: Recreate the window to make it more likely to have focus.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-05-14 16:04:47 +02:00 committed by Alexandre Julliard
parent 516c7e0dd8
commit acecfc6336
1 changed files with 4 additions and 0 deletions

View File

@ -2763,6 +2763,10 @@ static void test_rawinput(const char* argv0)
{
case 14:
case 15:
DestroyWindow(hwnd);
hwnd = CreateWindowA("static", "static", WS_VISIBLE | WS_POPUP,
pt.x - 50, pt.y - 50, 100, 100, 0, NULL, NULL, NULL);
ok(hwnd != 0, "CreateWindow failed\n");
SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
SetForegroundWindow(hwnd);
empty_message_queue();