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
8afc5fe6
Commit
8afc5fe6
authored
Jan 24, 2009
by
Florian Köberle
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix maximized child windows.
parent
4cfb1e69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
win.c
dlls/user32/tests/win.c
+0
-9
winpos.c
dlls/user32/winpos.c
+5
-2
No files found.
dlls/user32/tests/win.c
View file @
8afc5fe6
...
...
@@ -5190,15 +5190,6 @@ static void test_fullscreen(void)
/* Windows makes a maximized window slightly larger (to hide the borders?) */
fixup
=
min
(
abs
(
rc
.
left
),
abs
(
rc
.
top
));
InflateRect
(
&
rc
,
-
fixup
,
-
fixup
);
/* FIXME: this doesn't work correctly in Wine for child windows yet */
if
(
style
&
WS_CHILD
)
todo_wine
ok
(
rc
.
left
>=
mi
.
rcWork
.
left
&&
rc
.
top
<=
mi
.
rcWork
.
top
&&
rc
.
right
<=
mi
.
rcWork
.
right
&&
rc
.
bottom
<=
mi
.
rcWork
.
bottom
,
"%#x/%#x: window rect %d,%d-%d,%d must be in %d,%d-%d,%d
\n
"
,
ex_style
,
style
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
mi
.
rcWork
.
left
,
mi
.
rcWork
.
top
,
mi
.
rcWork
.
right
,
mi
.
rcWork
.
bottom
);
else
ok
(
rc
.
left
>=
mi
.
rcWork
.
left
&&
rc
.
top
<=
mi
.
rcWork
.
top
&&
rc
.
right
<=
mi
.
rcWork
.
right
&&
rc
.
bottom
<=
mi
.
rcWork
.
bottom
,
"%#x/%#x: window rect %d,%d-%d,%d must be in %d,%d-%d,%d
\n
"
,
...
...
dlls/user32/winpos.c
View file @
8afc5fe6
...
...
@@ -658,6 +658,7 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
HMONITOR
monitor
;
INT
xinc
,
yinc
;
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
LONG
adjustedStyle
;
LONG
exstyle
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
RECT
rc
;
WND
*
win
;
...
...
@@ -671,10 +672,12 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
if
(
style
&
WS_CHILD
)
{
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
style
&=
~
WS_BORDER
;
/* WS_CAPTION = WS_DLGFRAME | WS_BORDER */
adjustedStyle
=
style
&
~
WS_BORDER
;
/* WS_CAPTION = WS_DLGFRAME | WS_BORDER */
else
adjustedStyle
=
style
;
GetClientRect
(
GetAncestor
(
hwnd
,
GA_PARENT
),
&
rc
);
AdjustWindowRectEx
(
&
rc
,
s
tyle
,
((
style
&
WS_POPUP
)
&&
GetMenu
(
hwnd
)),
exstyle
);
AdjustWindowRectEx
(
&
rc
,
adjustedS
tyle
,
((
style
&
WS_POPUP
)
&&
GetMenu
(
hwnd
)),
exstyle
);
MinMax
.
ptMaxSize
.
x
=
rc
.
right
-
rc
.
left
;
MinMax
.
ptMaxSize
.
y
=
rc
.
bottom
-
rc
.
top
;
...
...
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