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
44675508
Commit
44675508
authored
May 05, 2000
by
Aric Stewart
Committed by
Alexandre Julliard
May 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added WM_SIZING message support.
parent
ebe7831a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
winuser.h
include/winuser.h
+10
-0
nonclient.c
windows/nonclient.c
+9
-5
No files found.
include/winuser.h
View file @
44675508
...
...
@@ -657,6 +657,16 @@ typedef struct
#define WM_CAPTURECHANGED 0x0215
#define WM_MOVING 0x0216
/* wParam for WM_SIZING message */
#define WMSZ_LEFT 1
#define WMSZ_RIGHT 2
#define WMSZ_TOP 3
#define WMSZ_TOPLEFT 4
#define WMSZ_TOPRIGHT 5
#define WMSZ_BOTTOM 6
#define WMSZ_BOTTOMLEFT 7
#define WMSZ_BOTTOMRIGHT 8
/* MDI messages */
#define WM_MDICREATE 0x0220
#define WM_MDIDESTROY 0x0221
...
...
windows/nonclient.c
View file @
44675508
...
...
@@ -2256,18 +2256,22 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam )
else
{
RECT
newRect
=
sizingRect
;
WPARAM
wpSizingHit
=
0
;
if
(
hittest
==
HTCAPTION
)
OffsetRect
(
&
newRect
,
dx
,
dy
);
if
(
ON_LEFT_BORDER
(
hittest
))
newRect
.
left
+=
dx
;
else
if
(
ON_RIGHT_BORDER
(
hittest
))
newRect
.
right
+=
dx
;
if
(
ON_TOP_BORDER
(
hittest
))
newRect
.
top
+=
dy
;
else
if
(
ON_BOTTOM_BORDER
(
hittest
))
newRect
.
bottom
+=
dy
;
if
(
!
iconic
)
{
NC_DrawMovingFrame
(
hdc
,
&
sizingRect
,
thickframe
);
NC_DrawMovingFrame
(
hdc
,
&
newRect
,
thickframe
);
}
if
(
!
iconic
)
NC_DrawMovingFrame
(
hdc
,
&
sizingRect
,
thickframe
);
capturePoint
=
pt
;
/* determine the hit location */
if
(
hittest
>=
HTLEFT
&&
hittest
<=
HTBOTTOMRIGHT
)
wpSizingHit
=
WMSZ_LEFT
+
(
hittest
-
HTLEFT
);
SendMessageA
(
hwnd
,
WM_SIZING
,
wpSizingHit
,
(
LPARAM
)
&
newRect
);
if
(
!
iconic
)
NC_DrawMovingFrame
(
hdc
,
&
newRect
,
thickframe
);
sizingRect
=
newRect
;
}
}
...
...
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