Commit 760dae9a authored by Russ Andersson's avatar Russ Andersson Committed by Alexandre Julliard

The WM_MOUSEWHEEL message is specified to have absolute screen

coordinates.
parent 417fde8d
...@@ -375,16 +375,20 @@ static void process_raw_mouse_message( MSG *msg, BOOL remove ) ...@@ -375,16 +375,20 @@ static void process_raw_mouse_message( MSG *msg, BOOL remove )
pt = msg->pt; pt = msg->pt;
/* Note: windows has no concept of a non-client wheel message */ /* Note: windows has no concept of a non-client wheel message */
if (hittest != HTCLIENT && msg->message != WM_MOUSEWHEEL) if (msg->message != WM_MOUSEWHEEL)
{ {
msg->message += WM_NCMOUSEMOVE - WM_MOUSEMOVE; if (hittest != HTCLIENT)
msg->wParam = hittest; {
} msg->message += WM_NCMOUSEMOVE - WM_MOUSEMOVE;
else msg->wParam = hittest;
{ }
/* coordinates don't get translated while tracking a menu */ else
/* FIXME: should differentiate popups and top-level menus */ {
if (!(info.flags & GUI_INMENUMODE)) ScreenToClient( msg->hwnd, &pt ); /* coordinates don't get translated while tracking a menu */
/* FIXME: should differentiate popups and top-level menus */
if (!(info.flags & GUI_INMENUMODE))
ScreenToClient( msg->hwnd, &pt );
}
} }
msg->lParam = MAKELONG( pt.x, pt.y ); msg->lParam = MAKELONG( pt.x, pt.y );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment