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
299f2b35
Commit
299f2b35
authored
Oct 12, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make sure AdjustWindowRect and WM_NCCALCSIZE yield the same result for…
user32: Make sure AdjustWindowRect and WM_NCCALCSIZE yield the same result for WS_EX_DLGMODALFRAME windows.
parent
9d18f10a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
nonclient.c
dlls/user32/nonclient.c
+4
-10
No files found.
dlls/user32/nonclient.c
View file @
299f2b35
...
...
@@ -86,7 +86,6 @@ static void
NC_AdjustRectOuter
(
LPRECT
rect
,
DWORD
style
,
BOOL
menu
,
DWORD
exStyle
)
{
int
adjust
;
if
(
style
&
WS_ICONIC
)
return
;
if
((
exStyle
&
(
WS_EX_STATICEDGE
|
WS_EX_DLGMODALFRAME
))
==
WS_EX_STATICEDGE
)
...
...
@@ -99,7 +98,7 @@ NC_AdjustRectOuter (LPRECT rect, DWORD style, BOOL menu, DWORD exStyle)
if
((
exStyle
&
WS_EX_DLGMODALFRAME
)
||
(
style
&
(
WS_THICKFRAME
|
WS_DLGFRAME
)))
adjust
=
2
;
/* outer */
}
if
(
style
&
WS_THICKFRAME
)
if
(
(
style
&
WS_THICKFRAME
)
&&
!
(
exStyle
&
WS_EX_DLGMODALFRAME
)
)
adjust
+=
(
GetSystemMetrics
(
SM_CXFRAME
)
-
GetSystemMetrics
(
SM_CXDLGFRAME
));
/* The resize border */
if
((
style
&
(
WS_BORDER
|
WS_DLGFRAME
))
||
...
...
@@ -140,8 +139,6 @@ NC_AdjustRectOuter (LPRECT rect, DWORD style, BOOL menu, DWORD exStyle)
static
void
NC_AdjustRectInner
(
LPRECT
rect
,
DWORD
style
,
DWORD
exStyle
)
{
if
(
style
&
WS_ICONIC
)
return
;
if
(
exStyle
&
WS_EX_CLIENTEDGE
)
InflateRect
(
rect
,
GetSystemMetrics
(
SM_CXEDGE
),
GetSystemMetrics
(
SM_CYEDGE
));
...
...
@@ -390,11 +387,8 @@ BOOL WINAPI AdjustWindowRect( LPRECT rect, DWORD style, BOOL menu )
*/
BOOL
WINAPI
AdjustWindowRectEx
(
LPRECT
rect
,
DWORD
style
,
BOOL
menu
,
DWORD
exStyle
)
{
/* Correct the window style */
style
&=
(
WS_DLGFRAME
|
WS_BORDER
|
WS_THICKFRAME
|
WS_CHILD
);
exStyle
&=
(
WS_EX_DLGMODALFRAME
|
WS_EX_CLIENTEDGE
|
WS_EX_STATICEDGE
|
WS_EX_TOOLWINDOW
);
if
(
exStyle
&
WS_EX_DLGMODALFRAME
)
style
&=
~
WS_THICKFRAME
;
if
(
style
&
WS_ICONIC
)
return
TRUE
;
style
&=
~
(
WS_HSCROLL
|
WS_VSCROLL
);
TRACE
(
"(%s) %08x %d %08x
\n
"
,
wine_dbgstr_rect
(
rect
),
style
,
menu
,
exStyle
);
...
...
@@ -424,7 +418,7 @@ LRESULT NC_HandleNCCalcSize( HWND hwnd, WPARAM wparam, RECT *winRect )
if
(
cls_style
&
CS_VREDRAW
)
result
|=
WVR_VREDRAW
;
if
(
cls_style
&
CS_HREDRAW
)
result
|=
WVR_HREDRAW
;
if
(
!
IsIconic
(
hwnd
))
if
(
!
(
style
&
WS_ICONIC
))
{
NC_AdjustRectOuter
(
&
tmpRect
,
style
,
FALSE
,
exStyle
);
...
...
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