Use the IsMDIChild() function instead of wxRTTI,

avoiding linking MDI classes in all programs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2005-03-05 16:11:29 +00:00
parent 3543c79e6f
commit dad285d71f

View 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
)
{