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:
@@ -142,6 +142,8 @@ protected:
|
|||||||
// window proc for the frames
|
// window proc for the frames
|
||||||
long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||||
|
|
||||||
|
virtual bool IsMDIChild() const { return FALSE; }
|
||||||
|
|
||||||
bool m_iconized;
|
bool m_iconized;
|
||||||
WXHICON m_defaultIcon;
|
WXHICON m_defaultIcon;
|
||||||
|
|
||||||
|
@@ -174,6 +174,7 @@ protected:
|
|||||||
virtual void DoGetPosition(int *x, int *y) const;
|
virtual void DoGetPosition(int *x, int *y) const;
|
||||||
virtual void DoSetClientSize(int width, int height);
|
virtual void DoSetClientSize(int width, int height);
|
||||||
virtual void InternalSetMenuBar();
|
virtual void InternalSetMenuBar();
|
||||||
|
virtual bool IsMDIChild() const { return TRUE; }
|
||||||
|
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
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 child MDI frames are a special case and should not be touched by
|
||||||
// the parent frame - instead, they are managed by the user
|
// the parent frame - instead, they are managed by the user
|
||||||
wxFrame *frame = wxDynamicCast(win, wxFrame);
|
wxFrame *frame = wxDynamicCast(win, wxFrame);
|
||||||
if ( frame && !wxDynamicCast(frame, wxMDIChildFrame) )
|
if ( frame && !frame->IsMDIChild() )
|
||||||
{
|
{
|
||||||
frame->Iconize(bIconize);
|
frame->Iconize(bIconize);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user