]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the IsMDIChild() function instead of wxRTTI,
authorMattia Barbon <mbarbon@cpan.org>
Sat, 5 Mar 2005 16:11:29 +0000 (16:11 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 5 Mar 2005 16:11:29 +0000 (16:11 +0000)
avoiding linking MDI classes in all programs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/frame.cpp

index 395a6602e1768716c9bd4b9a16c2f102bbc665ca..4d0045e87871b8e9450edd0c2aefc6276e1935b3 100644 (file)
@@ -663,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
            )
         {