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
640d2e02
Commit
640d2e02
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: Unify handling of child and normal windows in getMinMaxInfo.
The code for the child windows works now for the standalone windows as well.
parent
8afc5fe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
52 deletions
+20
-52
winpos.c
dlls/user32/winpos.c
+20
-52
No files found.
dlls/user32/winpos.c
View file @
640d2e02
...
@@ -669,66 +669,34 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
...
@@ -669,66 +669,34 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
MinMax
.
ptReserved
.
x
=
rc
.
left
;
MinMax
.
ptReserved
.
x
=
rc
.
left
;
MinMax
.
ptReserved
.
y
=
rc
.
top
;
MinMax
.
ptReserved
.
y
=
rc
.
top
;
if
(
style
&
WS_CHILD
)
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
{
adjustedStyle
=
style
&
~
WS_BORDER
;
/* WS_CAPTION = WS_DLGFRAME | WS_BORDER */
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
else
adjustedStyle
=
style
&
~
WS_BORDER
;
/* WS_CAPTION = WS_DLGFRAME | WS_BORDER */
adjustedStyle
=
style
;
else
adjustedStyle
=
style
;
GetClientRect
(
GetAncestor
(
hwnd
,
GA_PARENT
),
&
rc
);
GetClientRect
(
GetAncestor
(
hwnd
,
GA_PARENT
),
&
rc
);
AdjustWindowRectEx
(
&
rc
,
adjustedStyle
,
((
style
&
WS_POPUP
)
&&
GetMenu
(
hwnd
)),
exstyle
);
AdjustWindowRectEx
(
&
rc
,
adjustedStyle
,
((
style
&
WS_POPUP
)
&&
GetMenu
(
hwnd
)),
exstyle
);
MinMax
.
ptMaxSize
.
x
=
rc
.
right
-
rc
.
left
;
xinc
=
-
rc
.
left
;
MinMax
.
ptMaxSize
.
y
=
rc
.
bottom
-
rc
.
top
;
yinc
=
-
rc
.
top
;
if
(
style
&
(
WS_DLGFRAME
|
WS_BORDER
))
{
MinMax
.
ptMaxSize
.
x
=
rc
.
right
-
rc
.
left
;
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMaxSize
.
y
=
rc
.
bottom
-
rc
.
top
;
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
if
(
style
&
(
WS_DLGFRAME
|
WS_BORDER
))
}
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
;
yinc
=
-
rc
.
top
;
}
else
{
{
MinMax
.
ptMaxSize
.
x
=
GetSystemMetrics
(
SM_CXSCREEN
);
MinMax
.
ptMaxSize
.
y
=
GetSystemMetrics
(
SM_CYSCREEN
);
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
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
;
if
(
HAS_THICKFRAME
(
style
))
{
xinc
+=
GetSystemMetrics
(
SM_CXFRAME
);
yinc
+=
GetSystemMetrics
(
SM_CYFRAME
);
}
if
(
style
&
WS_BORDER
)
{
xinc
+=
GetSystemMetrics
(
SM_CXBORDER
);
yinc
+=
GetSystemMetrics
(
SM_CYBORDER
);
}
}
MinMax
.
ptMaxSize
.
x
+=
2
*
xinc
;
MinMax
.
ptMaxSize
.
y
+=
2
*
yinc
;
}
}
else
{
MinMax
.
ptMinTrackSize
.
x
=
2
*
xinc
;
MinMax
.
ptMinTrackSize
.
y
=
2
*
yinc
;
}
MinMax
.
ptMaxTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMAXTRACK
);
MinMax
.
ptMaxTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMAXTRACK
);
MinMax
.
ptMaxPosition
.
x
=
-
xinc
;
MinMax
.
ptMaxPosition
.
x
=
-
xinc
;
MinMax
.
ptMaxPosition
.
y
=
-
yinc
;
MinMax
.
ptMaxPosition
.
y
=
-
yinc
;
if
((
win
=
WIN_GetPtr
(
hwnd
))
&&
win
!=
WND_DESKTOP
&&
win
!=
WND_OTHER_PROCESS
)
if
((
win
=
WIN_GetPtr
(
hwnd
))
&&
win
!=
WND_DESKTOP
&&
win
!=
WND_OTHER_PROCESS
)
{
{
if
(
!
EMPTYPOINT
(
win
->
max_pos
))
MinMax
.
ptMaxPosition
=
win
->
max_pos
;
if
(
!
EMPTYPOINT
(
win
->
max_pos
))
MinMax
.
ptMaxPosition
=
win
->
max_pos
;
...
...
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