Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
557d8af5
Commit
557d8af5
authored
May 23, 2000
by
Alexandre Julliard
Committed by
Alexandre Julliard
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send a normal mouse message code in WM_PARENTNOTIFY, even if the
actual message was a non-client one.
parent
17d1e9e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
message.c
windows/message.c
+5
-8
No files found.
windows/message.c
View file @
557d8af5
...
...
@@ -297,9 +297,11 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
{
retvalue
=
MAKELONG
((
INT16
)
SYSQ_MSG_SKIP
,
hittest
);
goto
END
;
}
}
}
if
(
message
>=
WM_NCMOUSEFIRST
&&
message
<=
WM_NCMOUSELAST
)
message
+=
WM_MOUSEFIRST
-
WM_NCMOUSEFIRST
;
if
((
hittest
==
HTERROR
)
||
(
hittest
==
HTNOWHERE
))
eatMsg
=
sendSC
=
1
;
...
...
@@ -314,7 +316,7 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
* notification message is still WM_L/M/RBUTTONDOWN.
*/
MSG_SendParentNotify
(
pWnd
,
m
sg
->
message
&
0xffff
,
0
,
MAKELPARAM
(
screen_pt
.
x
,
screen_pt
.
y
)
);
MSG_SendParentNotify
(
pWnd
,
m
essage
,
0
,
MAKELPARAM
(
screen_pt
.
x
,
screen_pt
.
y
)
);
/* Activate the window if needed */
...
...
@@ -340,15 +342,10 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
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
,
uSCMessage
));
MAKELONG
(
hittest
,
message
));
}
if
(
eatMsg
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment