Huw Davies : comctl32/tests: Move the cursor off the parent window to avoid mouse messages.
Alexandre Julliard
julliard at winehq.org
Wed Aug 31 11:02:42 CDT 2016
Module: wine
Branch: master
Commit: 53b703d468697d2598afa2119491b2042ec905c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=53b703d468697d2598afa2119491b2042ec905c0
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Aug 31 11:18:41 2016 +0100
comctl32/tests: Move the cursor off the parent window to avoid mouse messages.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 918b774..fb5a2d1 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);
}
More information about the wine-cvs
mailing list