mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
user32: Add MOUSEHOOKSTRUCTEX for mouse wheel support.
Signed-off-by: Kira Backes <kira.backes@nrwsoft.de> Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
032e088c7d
commit
94aee7a738
2 changed files with 22 additions and 9 deletions
|
@ -2489,7 +2489,7 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
|
|||
INT hittest;
|
||||
EVENTMSG event;
|
||||
GUITHREADINFO info;
|
||||
MOUSEHOOKSTRUCT hook;
|
||||
MOUSEHOOKSTRUCTEX hook;
|
||||
BOOL eatMsg;
|
||||
|
||||
/* find the window to dispatch this mouse message to */
|
||||
|
@ -2585,17 +2585,19 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
|
|||
|
||||
/* message is accepted now (but may still get dropped) */
|
||||
|
||||
hook.pt = msg->pt;
|
||||
hook.hwnd = msg->hwnd;
|
||||
hook.wHitTestCode = hittest;
|
||||
hook.dwExtraInfo = extra_info;
|
||||
hook.s.pt = msg->pt;
|
||||
hook.s.hwnd = msg->hwnd;
|
||||
hook.s.wHitTestCode = hittest;
|
||||
hook.s.dwExtraInfo = extra_info;
|
||||
hook.mouseData = msg->wParam;
|
||||
if (HOOK_CallHooks( WH_MOUSE, remove ? HC_ACTION : HC_NOREMOVE,
|
||||
message, (LPARAM)&hook, TRUE ))
|
||||
{
|
||||
hook.pt = msg->pt;
|
||||
hook.hwnd = msg->hwnd;
|
||||
hook.wHitTestCode = hittest;
|
||||
hook.dwExtraInfo = extra_info;
|
||||
hook.s.pt = msg->pt;
|
||||
hook.s.hwnd = msg->hwnd;
|
||||
hook.s.wHitTestCode = hittest;
|
||||
hook.s.dwExtraInfo = extra_info;
|
||||
hook.mouseData = msg->wParam;
|
||||
HOOK_CallHooks( WH_CBT, HCBT_CLICKSKIPPED, message, (LPARAM)&hook, TRUE );
|
||||
accept_hardware_message( hw_id, TRUE );
|
||||
return FALSE;
|
||||
|
|
|
@ -385,6 +385,17 @@ typedef struct
|
|||
ULONG_PTR dwExtraInfo;
|
||||
} MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
struct { /* MOUSEHOOKSTRUCT */
|
||||
POINT pt;
|
||||
HWND hwnd;
|
||||
UINT wHitTestCode;
|
||||
ULONG_PTR dwExtraInfo;
|
||||
} DUMMYSTRUCTNAME;
|
||||
DWORD mouseData;
|
||||
} MOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX;
|
||||
|
||||
|
||||
/* Hardware hook structure */
|
||||
|
||||
|
|
Loading…
Reference in a new issue