Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
07a002f3
Commit
07a002f3
authored
Sep 09, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Send the same lParam with WM_SYSCOMMAND/SC_CLOSE as was received with WM_NCLBUTTONDOWN.
parent
9dbdd708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nonclient.c
dlls/user32/nonclient.c
+3
-3
No files found.
dlls/user32/nonclient.c
View file @
07a002f3
...
...
@@ -1316,7 +1316,7 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
*
* Track a mouse button press on the Win95 close button.
*/
static
void
NC_TrackCloseButton
(
HWND
hwnd
,
W
ORD
w
Param
)
static
void
NC_TrackCloseButton
(
HWND
hwnd
,
W
PARAM
wParam
,
LPARAM
l
Param
)
{
MSG
msg
;
HDC
hdc
;
...
...
@@ -1364,7 +1364,7 @@ static void NC_TrackCloseButton (HWND hwnd, WORD wParam)
ReleaseDC
(
hwnd
,
hdc
);
if
(
!
pressed
)
return
;
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
lParam
);
}
...
...
@@ -1442,7 +1442,7 @@ LRESULT NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
break
;
case
HTCLOSE
:
NC_TrackCloseButton
(
hwnd
,
wParam
);
NC_TrackCloseButton
(
hwnd
,
wParam
,
lParam
);
break
;
case
HTLEFT
:
...
...
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