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:
parent
f94dfb3897
commit
91dd52fe3b
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user