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
8784702d
Commit
8784702d
authored
Jan 20, 2009
by
Florian Köberle
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fixed max size of child with exStyle WS_EX_DGLMODALFRAME.
parent
aaddefff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
26 deletions
+7
-26
win.c
dlls/user32/tests/win.c
+6
-15
winpos.c
dlls/user32/winpos.c
+1
-11
No files found.
dlls/user32/tests/win.c
View file @
8784702d
...
...
@@ -5329,21 +5329,12 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM
expectedMaxSizeY
=
rect
.
bottom
-
rect
.
top
;
actualMaxSizeX
=
minmax
->
ptMaxSize
.
x
;
actualMaxSizeY
=
minmax
->
ptMaxSize
.
y
;
if
(
test_thick_child_exStyle
&
WS_EX_DLGMODALFRAME
)
{
todo_wine
ok
(
actualMaxSizeX
==
expectedMaxSizeX
&&
actualMaxSizeY
==
expectedMaxSizeY
,
"expected maxSize %dx%d, actual maxSize %dx%d for %s
\n
"
,
expectedMaxSizeX
,
expectedMaxSizeY
,
actualMaxSizeX
,
actualMaxSizeY
,
test_thick_child_name
);
}
else
{
ok
(
actualMaxSizeX
==
expectedMaxSizeX
&&
actualMaxSizeY
==
expectedMaxSizeY
,
"expected maxSize %dx%d, actual maxSize %dx%d for %s
\n
"
,
expectedMaxSizeX
,
expectedMaxSizeY
,
actualMaxSizeX
,
actualMaxSizeY
,
test_thick_child_name
);
}
ok
(
actualMaxSizeX
==
expectedMaxSizeX
&&
actualMaxSizeY
==
expectedMaxSizeY
,
"expected maxSize %dx%d, actual maxSize %dx%d for %s
\n
"
,
expectedMaxSizeX
,
expectedMaxSizeY
,
actualMaxSizeX
,
actualMaxSizeY
,
test_thick_child_name
);
expectedPosX
=
-
getExpectedBorderSize
(
test_thick_child_style
,
test_thick_child_exStyle
);
expectedPosY
=
expectedPosX
;
...
...
dlls/user32/winpos.c
View file @
8784702d
...
...
@@ -686,17 +686,7 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
MinMax
.
ptMaxTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMAXTRACK
);
MinMax
.
ptMaxTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMAXTRACK
);
if
(
HAS_DLGFRAME
(
style
,
exstyle
))
{
xinc
=
GetSystemMetrics
(
SM_CXDLGFRAME
);
yinc
=
GetSystemMetrics
(
SM_CYDLGFRAME
);
}
else
{
xinc
=
yinc
=
0
;
}
MinMax
.
ptMaxSize
.
x
+=
2
*
xinc
;
MinMax
.
ptMaxSize
.
y
+=
2
*
yinc
;
xinc
=
yinc
=
0
;
}
else
{
...
...
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