comctl32/tests: Move the cursor off the parent window to avoid mouse messages.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
249b494cce
commit
53b703d468
|
@ -192,6 +192,7 @@ START_TEST(syslink)
|
||||||
BOOL rc;
|
BOOL rc;
|
||||||
HWND hWndSysLink;
|
HWND hWndSysLink;
|
||||||
LONG oldstyle;
|
LONG oldstyle;
|
||||||
|
POINT orig_pos;
|
||||||
|
|
||||||
if (!load_v6_module(&ctx_cookie, &hCtx))
|
if (!load_v6_module(&ctx_cookie, &hCtx))
|
||||||
return;
|
return;
|
||||||
|
@ -214,6 +215,10 @@ START_TEST(syslink)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Move the cursor off the parent window */
|
||||||
|
GetCursorPos(&orig_pos);
|
||||||
|
SetCursorPos(400, 400);
|
||||||
|
|
||||||
init_msg_sequences(sequences, NUM_MSG_SEQUENCE);
|
init_msg_sequences(sequences, NUM_MSG_SEQUENCE);
|
||||||
|
|
||||||
/* Create parent window */
|
/* Create parent window */
|
||||||
|
@ -251,4 +256,5 @@ START_TEST(syslink)
|
||||||
DestroyWindow(hWndSysLink);
|
DestroyWindow(hWndSysLink);
|
||||||
DestroyWindow(hWndParent);
|
DestroyWindow(hWndParent);
|
||||||
unload_v6_module(ctx_cookie, hCtx);
|
unload_v6_module(ctx_cookie, hCtx);
|
||||||
|
SetCursorPos(orig_pos.x, orig_pos.y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue