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:
@@ -663,7 +663,7 @@ void wxFrame::IconizeChildFrames(bool bIconize)
|
|||||||
wxFrame *frame = wxDynamicCast(win, wxFrame);
|
wxFrame *frame = wxDynamicCast(win, wxFrame);
|
||||||
if ( frame
|
if ( frame
|
||||||
#if wxUSE_MDI_ARCHITECTURE
|
#if wxUSE_MDI_ARCHITECTURE
|
||||||
&& !wxDynamicCast(frame, wxMDIChildFrame)
|
&& !IsMDIChild()
|
||||||
#endif // wxUSE_MDI_ARCHITECTURE
|
#endif // wxUSE_MDI_ARCHITECTURE
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user