From 53b703d468697d2598afa2119491b2042ec905c0 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 31 Aug 2016 11:18:41 +0100 Subject: [PATCH] comctl32/tests: Move the cursor off the parent window to avoid mouse messages. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/comctl32/tests/syslink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/comctl32/tests/syslink.c b/dlls/comctl32/tests/syslink.c index 918b7746b71..fb5a2d17331 100644 --- a/dlls/comctl32/tests/syslink.c +++ b/dlls/comctl32/tests/syslink.c @@ -192,6 +192,7 @@ START_TEST(syslink) BOOL rc; HWND hWndSysLink; LONG oldstyle; + POINT orig_pos; if (!load_v6_module(&ctx_cookie, &hCtx)) return; @@ -214,6 +215,10 @@ START_TEST(syslink) return; } + /* Move the cursor off the parent window */ + GetCursorPos(&orig_pos); + SetCursorPos(400, 400); + init_msg_sequences(sequences, NUM_MSG_SEQUENCE); /* Create parent window */ @@ -251,4 +256,5 @@ START_TEST(syslink) DestroyWindow(hWndSysLink); DestroyWindow(hWndParent); unload_v6_module(ctx_cookie, hCtx); + SetCursorPos(orig_pos.x, orig_pos.y); }