added wxFrame::IsMDIChild() (msw only, protected)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-11-25 23:13:29 +00:00
parent f94dfb3897
commit 91dd52fe3b
3 changed files with 4 additions and 1 deletions

View File

@ -141,6 +141,8 @@ protected:
// 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;

View File

@ -174,6 +174,7 @@ protected:
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();

View 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);
}