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
d3d030eb
Commit
d3d030eb
authored
Jan 08, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Restore old WM_SIZE handler in mdi child.
parent
67568764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
mdi.c
dlls/user32/mdi.c
+17
-9
No files found.
dlls/user32/mdi.c
View file @
d3d030eb
...
...
@@ -1513,20 +1513,18 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
break
;
case
WM_SIZE
:
/* do not change */
TRACE
(
"current active %p, maximized %p
\n
"
,
ci
->
hwndActiveChild
,
ci
->
hwndChildMaximized
);
if
(
ci
->
hwnd
ChildMaximize
d
==
hwnd
&&
wParam
!=
SIZE_MAXIMIZED
)
if
(
ci
->
hwnd
ActiveChil
d
==
hwnd
&&
wParam
!=
SIZE_MAXIMIZED
)
{
HWND
frame
;
ci
->
hwndChildMaximized
=
0
;
frame
=
GetParent
(
client
);
MDI_RestoreFrameMenu
(
frame
,
hwnd
);
MDI_UpdateFrameText
(
frame
,
client
,
FALSE
,
NULL
);
ci
->
hwndChildMaximized
=
0
;
MDI_RefreshMenu
(
ci
);
MDI_PostUpdate
(
client
,
ci
,
SB_BOTH
+
1
);
}
if
(
wParam
==
SIZE_MAXIMIZED
)
...
...
@@ -1534,11 +1532,14 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
HWND
frame
,
hMaxChild
=
ci
->
hwndChildMaximized
;
if
(
hMaxChild
==
hwnd
)
break
;
if
(
hMaxChild
)
{
SendMessageW
(
hMaxChild
,
WM_SETREDRAW
,
FALSE
,
0
);
MDI_RestoreFrameMenu
(
GetParent
(
client
),
hMaxChild
);
ShowWindow
(
hMaxChild
,
SW_SHOWNOACTIVATE
);
SendMessageW
(
hMaxChild
,
WM_SETREDRAW
,
TRUE
,
0
);
}
...
...
@@ -1550,10 +1551,17 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
frame
=
GetParent
(
client
);
MDI_AugmentFrameMenu
(
frame
,
hwnd
);
MDI_UpdateFrameText
(
frame
,
client
,
TRUE
,
NULL
);
MDI_RefreshMenu
(
ci
);
MDI_PostUpdate
(
client
,
ci
,
SB_BOTH
+
1
);
}
if
(
wParam
==
SIZE_MINIMIZED
)
{
HWND
switchTo
=
MDI_GetWindow
(
ci
,
hwnd
,
TRUE
,
WS_MINIMIZE
);
if
(
switchTo
)
SendMessageW
(
switchTo
,
WM_CHILDACTIVATE
,
0
,
0
);
}
MDI_PostUpdate
(
client
,
ci
,
SB_BOTH
+
1
);
break
;
case
WM_NEXTMENU
:
...
...
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