No changes, just reuse a bit of code in wxMSW wxMDIParentFrame.
Call wxMDIChildFrame::Activate() instead of redoing the same thing. This also ensures that iconized MDI children are restored before being activated (see previous commit). See #13946. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -628,9 +628,7 @@ void wxMDIParentFrame::OnMDIChild(wxCommandEvent& event)
|
||||
int childId = wxGetWindowId(child->GetHWND());
|
||||
if ( childId == event.GetId() )
|
||||
{
|
||||
::SendMessage( GetWinHwnd(GetClientWindow()),
|
||||
WM_MDIACTIVATE,
|
||||
(WPARAM)child->GetHWND(), 0);
|
||||
wxStaticCast(child, wxMDIChildFrame)->Activate();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user