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
38b8805c
Commit
38b8805c
authored
Sep 01, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a bunch of GetWindowPlacement() tests, fix some simple cases.
parent
cc4972e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
msg.c
dlls/user32/tests/msg.c
+0
-0
winpos.c
dlls/user32/winpos.c
+15
-1
No files found.
dlls/user32/tests/msg.c
View file @
38b8805c
This diff is collapsed.
Click to expand it.
dlls/user32/winpos.c
View file @
38b8805c
...
...
@@ -880,7 +880,15 @@ UINT WINPOS_MinMaximize( HWND hwnd, UINT cmd, LPRECT rect )
WINPOS_GetMinMaxInfo
(
hwnd
,
&
size
,
&
wpl
.
ptMaxPosition
,
NULL
,
NULL
);
old_style
=
WIN_SetStyle
(
hwnd
,
WS_MAXIMIZE
,
WS_MINIMIZE
);
if
(
old_style
&
WS_MINIMIZE
)
WINPOS_ShowIconTitle
(
hwnd
,
FALSE
);
if
(
old_style
&
WS_MINIMIZE
)
{
if
((
wndPtr
=
WIN_GetPtr
(
hwnd
))
&&
wndPtr
!=
WND_OTHER_PROCESS
)
{
wndPtr
->
flags
|=
WIN_RESTORE_MAX
;
WIN_ReleasePtr
(
wndPtr
);
}
WINPOS_ShowIconTitle
(
hwnd
,
FALSE
);
}
if
(
!
(
old_style
&
WS_MAXIMIZE
))
swpFlags
|=
SWP_STATECHANGED
;
SetRect
(
rect
,
wpl
.
ptMaxPosition
.
x
,
wpl
.
ptMaxPosition
.
y
,
...
...
@@ -888,6 +896,12 @@ UINT WINPOS_MinMaximize( HWND hwnd, UINT cmd, LPRECT rect )
break
;
case
SW_SHOWNOACTIVATE
:
if
((
wndPtr
=
WIN_GetPtr
(
hwnd
))
&&
wndPtr
!=
WND_OTHER_PROCESS
)
{
wndPtr
->
flags
&=
~
WIN_RESTORE_MAX
;
WIN_ReleasePtr
(
wndPtr
);
}
/* fall through */
case
SW_SHOWNORMAL
:
case
SW_RESTORE
:
old_style
=
WIN_SetStyle
(
hwnd
,
0
,
WS_MINIMIZE
|
WS_MAXIMIZE
);
...
...
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