]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
wxMDIChildFrame::DetachMenuBar() to fix SF bug 1232271
[wxWidgets.git] / src / common / wincmn.cpp
index 9ac1028a5084df53170259338d1e17ed442be47c..77dbb647efe70d11c7bfa1066c5a699ed8d5c509 100644 (file)
@@ -44,6 +44,7 @@
     #include "wx/dialog.h"
     #include "wx/msgdlg.h"
     #include "wx/statusbr.h"
+    #include "wx/toolbar.h"
     #include "wx/dcclient.h"
 #endif //WX_PRECOMP
 
@@ -215,7 +216,7 @@ wxWindowBase::wxWindowBase()
 
     // VZ: this one shouldn't exist...
     m_isBeingDeleted = false;
-    
+
     // Reserved for future use
     m_windowReserved = NULL;
 }
@@ -500,7 +501,7 @@ void wxWindowBase::Centre(int direction)
     // to take into account the taskbar. And the Mac menu bar at top.
     wxRect clientrect = wxGetClientDisplayRect();
 
-    // NB: in wxMSW, negative position may not neccessary mean "out of screen",
+    // NB: in wxMSW, negative position may not necessarily mean "out of screen",
     //     but it may mean that the window is placed on other than the main
     //     display. Therefore we only make sure centered window is on the main display
     //     if the parent is at least partially present here.