Send normal mouse messages to WM_SETCURSOR when non-client mouse

messages occur.
This commit is contained in:
Abey George 1999-07-27 17:06:55 +00:00 committed by Alexandre Julliard
parent f18e7c322e
commit 9849f1642a
1 changed files with 10 additions and 1 deletions

View File

@ -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);