mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
The WM_MOUSEWHEEL message is specified to have absolute screen
coordinates.
This commit is contained in:
parent
417fde8d42
commit
760dae9abe
@ -375,16 +375,20 @@ static void process_raw_mouse_message( MSG *msg, BOOL remove )
|
||||
|
||||
pt = msg->pt;
|
||||
/* 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;
|
||||
msg->wParam = hittest;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 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 );
|
||||
if (hittest != HTCLIENT)
|
||||
{
|
||||
msg->message += WM_NCMOUSEMOVE - WM_MOUSEMOVE;
|
||||
msg->wParam = hittest;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user