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
e8426761
Commit
e8426761
authored
Mar 22, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If an MDI child becomes active restore previously maximized MDI
child.
parent
caf7aefc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
msg.c
dlls/user/tests/msg.c
+1
-1
mdi.c
windows/mdi.c
+8
-7
No files found.
dlls/user/tests/msg.c
View file @
e8426761
...
...
@@ -2259,7 +2259,7 @@ static void test_mdi_messages(void)
0
,
0
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
mdi_client
,
0
,
GetModuleHandleA
(
0
),
NULL
);
assert
(
mdi_child
);
ok_sequence
(
WmCreateMDIchildVisibleSeq
,
"Create visible MDI child window"
,
TRU
E
);
ok_sequence
(
WmCreateMDIchildVisibleSeq
,
"Create visible MDI child window"
,
FALS
E
);
ok
(
GetWindowLongA
(
mdi_child
,
GWL_STYLE
)
&
WS_VISIBLE
,
"MDI child should be visible
\n
"
);
ok
(
IsWindowVisible
(
mdi_child
),
"MDI child should be visible
\n
"
);
...
...
windows/mdi.c
View file @
e8426761
...
...
@@ -482,7 +482,7 @@ static void MDI_ChildGetMinMaxInfo( HWND client, HWND hwnd, MINMAXINFO* lpMinMax
* Note: SetWindowPos sends WM_CHILDACTIVATE to the child window that is
* being activated
*/
static
void
MDI_SwitchActiveChild
(
MDICLIENTINFO
*
ci
,
HWND
hwndTo
)
static
void
MDI_SwitchActiveChild
(
MDICLIENTINFO
*
ci
,
HWND
hwndTo
,
BOOL
activate
)
{
HWND
hwndPrev
;
...
...
@@ -507,7 +507,7 @@ static void MDI_SwitchActiveChild( MDICLIENTINFO *ci, HWND hwndTo )
ShowWindow
(
hwndTo
,
SW_MAXIMIZE
);
}
/* activate new MDI child */
SetWindowPos
(
hwndTo
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
SetWindowPos
(
hwndTo
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
(
activate
?
0
:
SWP_NOACTIVATE
)
);
}
}
...
...
@@ -526,7 +526,7 @@ static LRESULT MDIDestroyChild( HWND client, MDICLIENTINFO *ci,
{
HWND
next
=
MDI_GetWindow
(
ci
,
child
,
TRUE
,
0
);
if
(
next
)
MDI_SwitchActiveChild
(
ci
,
next
);
MDI_SwitchActiveChild
(
ci
,
next
,
TRUE
);
else
{
ShowWindow
(
child
,
SW_HIDE
);
...
...
@@ -597,6 +597,7 @@ static LONG MDI_ChildActivate( HWND client, HWND child )
SendMessageW
(
prevActiveWnd
,
WM_MDIACTIVATE
,
(
WPARAM
)
prevActiveWnd
,
(
LPARAM
)
child
);
}
MDI_SwitchActiveChild
(
clientInfo
,
child
,
FALSE
);
clientInfo
->
hwndActiveChild
=
child
;
MDI_RefreshMenu
(
clientInfo
);
...
...
@@ -604,7 +605,7 @@ static LONG MDI_ChildActivate( HWND client, HWND child )
if
(
isActiveFrameWnd
)
{
SendMessageW
(
child
,
WM_NCACTIVATE
,
TRUE
,
0L
);
SetFocus
(
child
);
SetFocus
(
client
);
}
SendMessageW
(
child
,
WM_MDIACTIVATE
,
(
WPARAM
)
prevActiveWnd
,
(
LPARAM
)
child
);
...
...
@@ -1061,7 +1062,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
case
WM_MDIACTIVATE
:
{
MDI_SwitchActiveChild
(
ci
,
(
HWND
)
wParam
);
MDI_SwitchActiveChild
(
ci
,
(
HWND
)
wParam
,
TRUE
);
return
0
;
}
...
...
@@ -1122,7 +1123,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
case
WM_MDINEXT
:
/* lParam != 0 means previous window */
{
HWND
next
=
MDI_GetWindow
(
ci
,
WIN_GetFullHandle
(
(
HWND
)
wParam
),
!
lParam
,
0
);
MDI_SwitchActiveChild
(
ci
,
next
);
MDI_SwitchActiveChild
(
ci
,
next
,
TRUE
);
break
;
}
...
...
@@ -1200,7 +1201,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
case
WM_SIZE
:
if
(
IsWindow
(
ci
->
hwndActiveChild
)
&&
IsZoomed
(
ci
->
hwndActiveChild
)
&&
IsWindowVisible
(
ci
->
hwndActiveChild
)
)
(
GetWindowLongW
(
ci
->
hwndActiveChild
,
GWL_STYLE
)
&
WS_VISIBLE
)
)
{
RECT
rect
;
...
...
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