Restore an iconized MDI child frame when activating it.
Without doing this activating an iconized frame doesn't do anything at all, i.e. doesn't present it to the user as presumably intended. Closes #13946. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e380ca3cf8
commit
254dceaaab
@ -1037,6 +1037,11 @@ void wxMDIChildFrame::Activate()
|
||||
wxMDIParentFrame * const parent = GetMDIParent();
|
||||
if ( parent && parent->GetClientWindow() )
|
||||
{
|
||||
// Activating an iconized MDI frame doesn't do anything, so restore it
|
||||
// first to really present it to the user.
|
||||
if ( IsIconized() )
|
||||
Restore();
|
||||
|
||||
::SendMessage(GetWinHwnd(parent->GetClientWindow()), WM_MDIACTIVATE,
|
||||
(WPARAM) GetHwnd(), 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user