]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
Applied dir control token patch.
[wxWidgets.git] / src / msw / frame.cpp
index 06e51b1f688e4bd11f4a7211d0ed031eba36e3b1..4d0045e87871b8e9450edd0c2aefc6276e1935b3 100644 (file)
@@ -169,6 +169,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxTopLevelWindow)
 
 void wxFrame::Init()
 {
+#if wxUSE_MENUS
+    m_hMenu = NULL;
+#endif // wxUSE_MENUS
+
 #if wxUSE_TOOLTIPS
     m_hwndToolTip = 0;
 #endif
@@ -659,7 +663,7 @@ void wxFrame::IconizeChildFrames(bool bIconize)
         wxFrame *frame = wxDynamicCast(win, wxFrame);
         if ( frame
 #if wxUSE_MDI_ARCHITECTURE
-                && !wxDynamicCast(frame, wxMDIChildFrame)
+                && !IsMDIChild()
 #endif // wxUSE_MDI_ARCHITECTURE
            )
         {