]> git.saurik.com Git - wxWidgets.git/commitdiff
bug fixed for mdi parent frames
authorBenjamin Williams <bwilliams@kirix.com>
Sun, 5 Nov 2006 20:22:49 +0000 (20:22 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Sun, 5 Nov 2006 20:22:49 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index e1b0ee6797fa0c76d07b803eda87bec114a3d650..dbeeb975e9b71ac80abdf6708732e62760a121fd 100644 (file)
@@ -3465,6 +3465,17 @@ void wxAuiManager::OnSize(wxSizeEvent& event)
     {
         DoFrameLayout();
         Repaint();
+        
+#if wxUSE_MDI
+        if (m_frame->IsKindOf(CLASSINFO(wxMDIParentFrame)))
+        {
+            // for MDI parent frames, this event must not
+            // be "skipped".  In other words, the parent frame
+            // must not be allowed to resize the client window
+            // after we are finished processing sizing changes
+            return;
+        }
+#endif
     }
     event.Skip();
 }