git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8820
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// window proc for the frames
long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+
+ virtual bool IsMDIChild() const { return FALSE; }
bool m_iconized;
WXHICON m_defaultIcon;
virtual void DoGetPosition(int *x, int *y) const;
virtual void DoSetClientSize(int width, int height);
virtual void InternalSetMenuBar();
+ virtual bool IsMDIChild() const { return TRUE; }
// common part of all ctors
void Init();
// 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);
}