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
aaddefff
Commit
aaddefff
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: Refactor of WINPOS_GetMinMaxInfo.
Moved and duplicated the code below the "if child" statement into the if and else block.
parent
3d7118bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
22 deletions
+37
-22
winpos.c
dlls/user32/winpos.c
+37
-22
No files found.
dlls/user32/winpos.c
View file @
aaddefff
...
...
@@ -681,39 +681,54 @@ 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
);
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
;
}
else
{
MinMax
.
ptMaxSize
.
x
=
GetSystemMetrics
(
SM_CXSCREEN
);
MinMax
.
ptMaxSize
.
y
=
GetSystemMetrics
(
SM_CYSCREEN
);
}
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
MinMax
.
ptMinTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMINTRACK
);
MinMax
.
ptMaxTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMAXTRACK
);
MinMax
.
ptMaxTrackSize
.
y
=
GetSystemMetrics
(
SM_CYMAXTRACK
);
MinMax
.
ptMinTrackSize
.
x
=
GetSystemMetrics
(
SM_CXMINTRACK
);
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
))
if
(
HAS_DLGFRAME
(
style
,
exstyle
))
{
xinc
+=
GetSystemMetrics
(
SM_CX
FRAME
);
yinc
+=
GetSystemMetrics
(
SM_CY
FRAME
);
xinc
=
GetSystemMetrics
(
SM_CXDLG
FRAME
);
yinc
=
GetSystemMetrics
(
SM_CYDLG
FRAME
);
}
if
(
style
&
WS_BORDER
)
else
{
xinc
+=
GetSystemMetrics
(
SM_CXBORDER
);
yinc
+=
GetSystemMetrics
(
SM_CYBORDER
);
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
;
}
MinMax
.
ptMaxSize
.
x
+=
2
*
xinc
;
MinMax
.
ptMaxSize
.
y
+=
2
*
yinc
;
MinMax
.
ptMaxPosition
.
x
=
-
xinc
;
MinMax
.
ptMaxPosition
.
y
=
-
yinc
;
if
((
win
=
WIN_GetPtr
(
hwnd
))
&&
win
!=
WND_DESKTOP
&&
win
!=
WND_OTHER_PROCESS
)
...
...
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