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
f6d5368d
Commit
f6d5368d
authored
Jan 14, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Simplify some maximized MDI child checks.
parent
d63fd791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
mdi.c
dlls/user32/mdi.c
+13
-13
No files found.
dlls/user32/mdi.c
View file @
f6d5368d
...
...
@@ -320,8 +320,8 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
{
if
(
hmenuFrame
==
ci
->
hFrameMenu
)
return
(
LRESULT
)
hmenuFrame
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
)
MDI_RestoreFrameMenu
(
hwndFrame
,
ci
->
hwnd
ActiveChil
d
);
if
(
ci
->
hwndChildMaximized
)
MDI_RestoreFrameMenu
(
hwndFrame
,
ci
->
hwnd
ChildMaximize
d
);
}
if
(
hmenuWindow
&&
hmenuWindow
!=
ci
->
hWindowMenu
)
...
...
@@ -355,8 +355,8 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
HMENU
oldFrameMenu
=
ci
->
hFrameMenu
;
ci
->
hFrameMenu
=
hmenuFrame
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
&&
(
GetWindowLongW
(
ci
->
hwndActiveChil
d
,
GWL_STYLE
)
&
WS_VISIBLE
))
MDI_AugmentFrameMenu
(
hwndFrame
,
ci
->
hwnd
ActiveChil
d
);
if
(
ci
->
hwndChildMaximized
&&
(
GetWindowLongW
(
ci
->
hwndChildMaximize
d
,
GWL_STYLE
)
&
WS_VISIBLE
))
MDI_AugmentFrameMenu
(
hwndFrame
,
ci
->
hwnd
ChildMaximize
d
);
return
(
LRESULT
)
oldFrameMenu
;
}
...
...
@@ -369,8 +369,8 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
* that the "if" to this "else" wouldn't catch the need to
* augment the frame menu.
*/
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
)
MDI_AugmentFrameMenu
(
hwndFrame
,
ci
->
hwnd
ActiveChil
d
);
if
(
ci
->
hwndChildMaximized
)
MDI_AugmentFrameMenu
(
hwndFrame
,
ci
->
hwnd
ChildMaximize
d
);
}
return
0
;
...
...
@@ -685,8 +685,8 @@ static LONG MDICascade( HWND client, MDICLIENTINFO *ci )
BOOL
has_icons
=
FALSE
;
int
i
,
total
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
)
SendMessageW
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwnd
ActiveChil
d
,
0
);
if
(
ci
->
hwndChildMaximized
)
SendMessageW
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwnd
ChildMaximize
d
,
0
);
if
(
ci
->
nActiveChildren
==
0
)
return
0
;
...
...
@@ -738,8 +738,8 @@ static void MDITile( HWND client, MDICLIENTINFO *ci, WPARAM wParam )
int
i
,
total
;
BOOL
has_icons
=
FALSE
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
)
SendMessageW
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwnd
ActiveChil
d
,
0
);
if
(
ci
->
hwndChildMaximized
)
SendMessageW
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwnd
ChildMaximize
d
,
0
);
if
(
ci
->
nActiveChildren
==
0
)
return
;
...
...
@@ -974,7 +974,7 @@ static void MDI_UpdateFrameText( HWND frame, HWND hClient, BOOL repaint, LPCWSTR
if
(
ci
->
frameTitle
)
{
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
&&
IsWindowVisible
(
ci
->
hwndActiveChild
))
if
(
ci
->
hwndChildMaximized
&&
(
GetWindowLongW
(
ci
->
hwndChildMaximized
,
GWL_STYLE
)
&
WS_VISIBLE
))
{
/* combine frame title and child title if possible */
...
...
@@ -1481,7 +1481,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
switch
(
wParam
)
{
case
SC_MOVE
:
if
(
ci
->
hwnd
ActiveChild
==
hwnd
&&
IsZoomed
(
ci
->
hwndActiveChild
)
)
if
(
ci
->
hwnd
ChildMaximized
==
hwnd
)
return
0
;
break
;
case
SC_RESTORE
:
...
...
@@ -1502,7 +1502,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
case
WM_SHOWWINDOW
:
case
WM_SETVISIBLE
:
if
(
IsZoomed
(
ci
->
hwndActiveChild
)
)
ci
->
mdiFlags
&=
~
MDIF_NEEDUPDATE
;
if
(
ci
->
hwndChildMaximized
)
ci
->
mdiFlags
&=
~
MDIF_NEEDUPDATE
;
else
MDI_PostUpdate
(
client
,
ci
,
SB_BOTH
+
1
);
break
;
...
...
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