]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
A few OS/2 additions to enable the colour database to work with PM.
[wxWidgets.git] / src / msw / frame.cpp
index 501b0fe8b698bdc775a0201b0b4b253c63dd7550..10ecf1553a9917a58e62fd4ca4fe363c59bf0bef 100644 (file)
@@ -807,7 +807,7 @@ void wxFrame::IconizeChildFrames(bool bIconize)
         // the child MDI frames are a special case and should not be touched by
         // the parent frame - instead, they are managed by the user
         wxFrame *frame = wxDynamicCast(win, wxFrame);
-        if ( frame && !wxDynamicCast(frame, wxMDIChildFrame) )
+        if ( frame && !frame->IsMDIChild() )
         {
             frame->Iconize(bIconize);
         }