]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
Don't hide/show wxActiveXContainer when resizing it.
[wxWidgets.git] / src / msw / mdi.cpp
index 6dd3e63db51017bf09f232a18f03d842bea144e2..6dbb49ea1ade739da71d948e336386e4e008525c 100644 (file)
@@ -369,8 +369,7 @@ void wxMDIParentFrame::SetWindowMenu(wxMenu* menu)
     }
 
 #if wxUSE_ACCEL
-    delete m_accelWindowMenu;
-    m_accelWindowMenu = NULL;
+    wxDELETE(m_accelWindowMenu);
 
     if ( menu && menu->HasAccels() )
         m_accelWindowMenu = menu->CreateAccelTable();
@@ -1112,7 +1111,7 @@ bool wxMDIChildFrame::HandleMDIActivate(long WXUNUSED(activate),
 
         WXHMENU hMenuParent = parent->m_hMenu;
 
-        // activate the the parent menu only when there is no other child
+        // activate the parent menu only when there is no other child
         // that has been activated
         if ( hMenuParent && !hwndAct )
             hMenuToSet = hMenuParent;