]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
assert -> wxASSERT
[wxWidgets.git] / src / msw / mdi.cpp
index e55c7f6b18a0e28256838688d9dbfae405a4a23f..0dce669ebfd1d8f5471cdfe029cdcb8d4b9b5abf 100644 (file)
@@ -313,7 +313,7 @@ void wxMDIParentFrame::DoMenuUpdates(wxMenu* menu)
             {
                 int nCount = bar->GetMenuCount();
                 for (int n = 0; n < nCount; n++)
-                bar->GetMenu(n)->UpdateUI(source);
+                    bar->GetMenu(n)->UpdateUI(source);
             }
         }
     }
@@ -850,6 +850,12 @@ void wxMDIChildFrame::InternalSetMenuBar()
     parent->m_parentFrameActive = false;
 }
 
+void wxMDIChildFrame::DetachMenuBar()
+{
+       RemoveWindowMenu(NULL, m_hMenu);
+       wxFrame::DetachMenuBar();
+}
+
 WXHICON wxMDIChildFrame::GetDefaultIcon() const
 {
     // we don't have any standard icons (any more)
@@ -1377,6 +1383,7 @@ static void InsertWindowMenu(wxWindow *win, WXHMENU menu, HMENU subMenu)
                 continue;
             }
 
+
             if ( wxStripMenuCodes(wxString(buf)).IsSameAs(_("Help")) )
             {
                 success = true;