]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just reuse a bit of code in wxMSW wxMDIParentFrame.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2012 22:49:01 +0000 (22:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Sep 2012 22:49:01 +0000 (22:49 +0000)
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

src/msw/mdi.cpp

index 68faa155db2ff8fb5a08a883c914fcf3adaa395b..46e0166c80ba353a231113466748919251e2904e 100644 (file)
@@ -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;
             }
         }