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
040b3e1d
Commit
040b3e1d
authored
May 19, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore MDI window in the case of disabled maximize button.
parent
cdbe1570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
mdi.c
windows/mdi.c
+10
-2
No files found.
windows/mdi.c
View file @
040b3e1d
...
...
@@ -771,12 +771,20 @@ static LONG MDI_ChildActivate( HWND client, HWND child )
/* set appearance */
if
(
clientInfo
->
hwndChildMaximized
&&
clientInfo
->
hwndChildMaximized
!=
child
)
{
INT
cmd
=
SW_SHOWNORMAL
;
if
(
child
)
{
UINT
state
=
GetMenuState
(
GetSystemMenu
(
child
,
FALSE
),
SC_MAXIMIZE
,
MF_BYCOMMAND
);
if
(
state
!=
0xFFFFFFFF
&&
(
state
&
(
MF_DISABLED
|
MF_GRAYED
)))
SendMessageW
(
clientInfo
->
hwndChildMaximized
,
WM_SYSCOMMAND
,
SC_RESTORE
,
0
);
else
cmd
=
SW_SHOWMAXIMIZED
;
clientInfo
->
hwndActiveChild
=
child
;
ShowWindow
(
child
,
SW_SHOWMAXIMIZED
);
}
else
ShowWindow
(
clientInfo
->
hwndActiveChild
,
SW_SHOWNORMAL
);
ShowWindow
(
clientInfo
->
hwndActiveChild
,
cmd
);
}
clientInfo
->
hwndActiveChild
=
child
;
...
...
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