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
5d35bc74
Commit
5d35bc74
authored
Feb 18, 2003
by
Duane Clark
Committed by
Alexandre Julliard
Feb 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly encode wParam for WM_SYSCOMMAND,SC_SIZE messages.
parent
3ea0cb3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
winpos.c
dlls/x11drv/winpos.c
+2
-1
nonclient.c
windows/nonclient.c
+9
-2
No files found.
dlls/x11drv/winpos.c
View file @
5d35bc74
...
@@ -1901,7 +1901,8 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
...
@@ -1901,7 +1901,8 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
else
/* SC_SIZE */
else
/* SC_SIZE */
{
{
if
(
!
thickframe
)
return
;
if
(
!
thickframe
)
return
;
if
(
hittest
&&
hittest
!=
HTSYSMENU
)
hittest
+=
2
;
if
(
hittest
&&
((
wParam
&
0xfff0
)
!=
SC_MOUSEMENU
)
)
hittest
+=
(
HTLEFT
-
WMSZ_LEFT
);
else
else
{
{
set_movesize_capture
(
hwnd
);
set_movesize_capture
(
hwnd
);
...
...
windows/nonclient.c
View file @
5d35bc74
...
@@ -2071,8 +2071,15 @@ LONG NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
...
@@ -2071,8 +2071,15 @@ LONG NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
case
HTBOTTOM
:
case
HTBOTTOM
:
case
HTBOTTOMLEFT
:
case
HTBOTTOMLEFT
:
case
HTBOTTOMRIGHT
:
case
HTBOTTOMRIGHT
:
/* make sure hittest fits into 0xf and doesn't overlap with HTSYSMENU */
/* Old comment:
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_SIZE
+
wParam
-
2
,
lParam
);
* "make sure hittest fits into 0xf and doesn't overlap with HTSYSMENU"
* This was previously done by setting wParam=SC_SIZE + wParam - 2
*/
/* But that is not what WinNT does. Instead it sends this. This
* is easy to differentiate from HTSYSMENU, because HTSYSMENU adds
* SC_MOUSEMENU into wParam.
*/
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_SIZE
+
wParam
-
(
HTLEFT
-
WMSZ_LEFT
),
lParam
);
break
;
break
;
case
HTBORDER
:
case
HTBORDER
:
...
...
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