]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
Forward events to active child in wxMDIParentFrameBase, not only wxMSW.
[wxWidgets.git] / src / msw / mdi.cpp
index e78625d9f079120425cc8fc7344b2a1a2cde5f16..309002bb01d46b464ee98c41839c9452cb9e32bf 100644 (file)
@@ -698,21 +698,6 @@ void wxMDIParentFrame::OnMDICommand(wxCommandEvent& event)
 
 #endif // wxUSE_MENUS
 
-bool wxMDIParentFrame::TryBefore(wxEvent& event)
-{
-    // menu (and toolbar) events should be sent to the active child frame
-    // first, if any
-    if ( event.GetEventType() == wxEVT_MENU ||
-            event.GetEventType() == wxEVT_UPDATE_UI )
-    {
-        wxMDIChildFrame * const child = GetActiveChild();
-        if ( child && child->ProcessWindowEventLocally(event) )
-            return true;
-    }
-
-    return wxMDIParentFrameBase::TryBefore(event);
-}
-
 WXLRESULT wxMDIParentFrame::MSWDefWindowProc(WXUINT message,
                                         WXWPARAM wParam,
                                         WXLPARAM lParam)