Small wheel mouse patch
Travis Michielsen
tjmichielsen at yahoo.com
Thu Jun 28 13:31:52 CDT 2001
This is a small patch that fixes handling of WM_MOUSEWHEEL messages in
non-client space.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-------------- next part --------------
diff -u -r1.111 message.c
--- windows/message.c 2001/06/28 04:37:22 1.111
+++ windows/message.c 2001/06/28 18:11:24
@@ -503,8 +503,12 @@
if (update) clk_msg = *msg;
}
+ /* Treat the mouse wheel event separately because:
+ * 1) if the mouse is positioned in non-client space (eg on a scrollbar) wParam will be clobbered with hittest (wParam is used for key flags and zDelta)
+ * 2) windows has no concept of a non-client wheel message therefore we must not change the message
+ */
pt = msg->pt;
- if (hittest != HTCLIENT)
+ if (hittest != HTCLIENT && msg->message != WM_MOUSEWHEEL)
{
msg->message += WM_NCMOUSEMOVE - WM_MOUSEMOVE;
msg->wParam = hittest;
More information about the wine-patches
mailing list