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
a50deff4
Commit
a50deff4
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 thick child minTrack and size.
parent
ce119daf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
30 deletions
+18
-30
win.c
dlls/user32/tests/win.c
+8
-28
winpos.c
dlls/user32/winpos.c
+10
-2
No files found.
dlls/user32/tests/win.c
View file @
a50deff4
...
...
@@ -5282,20 +5282,11 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM
}
actualMinTrackX
=
minmax
->
ptMinTrackSize
.
x
;
actualMinTrackY
=
minmax
->
ptMinTrackSize
.
y
;
if
(
!
(
test_thick_child_style
&
(
WS_DLGFRAME
|
WS_BORDER
)))
{
todo_wine
ok
(
actualMinTrackX
==
expectedMinTrackX
&&
actualMinTrackY
==
expectedMinTrackY
,
"expected minTrack %dx%d, actual minTrack %dx%d for %s
\n
"
,
expectedMinTrackX
,
expectedMinTrackY
,
actualMinTrackX
,
actualMinTrackY
,
test_thick_child_name
);
}
else
{
ok
(
actualMinTrackX
==
expectedMinTrackX
&&
actualMinTrackY
==
expectedMinTrackY
,
"expected minTrack %dx%d, actual minTrack %dx%d for %s
\n
"
,
expectedMinTrackX
,
expectedMinTrackY
,
actualMinTrackX
,
actualMinTrackY
,
test_thick_child_name
);
}
ok
(
actualMinTrackX
==
expectedMinTrackX
&&
actualMinTrackY
==
expectedMinTrackY
,
"expected minTrack %dx%d, actual minTrack %dx%d for %s
\n
"
,
expectedMinTrackX
,
expectedMinTrackY
,
actualMinTrackX
,
actualMinTrackY
,
test_thick_child_name
);
actualMaxTrackX
=
minmax
->
ptMaxTrackSize
.
x
;
actualMaxTrackY
=
minmax
->
ptMaxTrackSize
.
y
;
...
...
@@ -5453,20 +5444,9 @@ static void test_thick_child_size(HWND parentWindow)
expectedHeight
=
-
2
*
adjustedParentRect
.
top
;
}
if
(
!
(
test_thick_child_style
&
(
WS_DLGFRAME
|
WS_BORDER
)))
{
todo_wine
ok
((
childWidth
==
expectedWidth
)
&&
(
childHeight
==
expectedHeight
),
"size of window (%s) is wrong: expected size %dx%d != actual size %dx%d
\n
"
,
test_thick_child_name
,
expectedWidth
,
expectedHeight
,
childWidth
,
childHeight
);
}
else
{
ok
((
childWidth
==
expectedWidth
)
&&
(
childHeight
==
expectedHeight
),
"size of window (%s) is wrong: expected size %dx%d != actual size %dx%d
\n
"
,
test_thick_child_name
,
expectedWidth
,
expectedHeight
,
childWidth
,
childHeight
);
}
ok
((
childWidth
==
expectedWidth
)
&&
(
childHeight
==
expectedHeight
),
"size of window (%s) is wrong: expected size %dx%d != actual size %dx%d
\n
"
,
test_thick_child_name
,
expectedWidth
,
expectedHeight
,
childWidth
,
childHeight
);
SetLastError
(
0xdeadbeef
);
success
=
DestroyWindow
(
childWindow
);
...
...
dlls/user32/winpos.c
View file @
a50deff4
...
...
@@ -678,8 +678,16 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
MinMax
.
ptMaxSize
.
x
=
rc
.
right
-
rc
.
left
;
MinMax
.
ptMaxSize
.
y
=
rc
.
bottom
-
rc
.
top
;
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
if
(
style
&
(
WS_DLGFRAME
|
WS_BORDER
))
{
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
}
else
{
MinMax
.
ptMinTrackSize
.
x
=
-
2
*
rc
.
left
;
MinMax
.
ptMinTrackSize
.
y
=
-
2
*
rc
.
top
;
}
MinMax
.
ptMaxTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMAXTRACK
);
MinMax
.
ptMaxTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMAXTRACK
);
xinc
=
-
rc
.
left
;
...
...
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