Commit 9849f164 authored by Abey George's avatar Abey George Committed by Alexandre Julliard

Send normal mouse messages to WM_SETCURSOR when non-client mouse

messages occur.
parent f18e7c32
......@@ -337,8 +337,17 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
/* Send the WM_SETCURSOR message */
if (sendSC)
{
UINT uSCMessage = message;
/* Windows sends the normal mouse message as the message parameter
in the WM_SETCURSOR message even if it's non-client mouse message */
if (uSCMessage >= WM_NCMOUSEFIRST && uSCMessage <= WM_NCMOUSELAST)
uSCMessage += WM_MOUSEFIRST - WM_NCMOUSEFIRST;
SendMessageA( hWnd, WM_SETCURSOR, hWnd,
MAKELONG( hittest, message ));
MAKELONG( hittest, uSCMessage));
}
if (eatMsg)
{
retvalue = MAKELONG( (UINT16)SYSQ_MSG_SKIP, hittest);
......
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