]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxFrame::IsMDIChild() (msw only, protected)
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 25 Nov 2000 23:13:29 +0000 (23:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 25 Nov 2000 23:13:29 +0000 (23:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/frame.h
include/wx/msw/mdi.h
src/msw/frame.cpp

index 410081887e0d78ff3f0dfe08a18742b6cbb8d2d6..325f0acc510b96a4772cc5df38a7d6a830a022b4 100644 (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;
index 385659df1c46196c195b73ef4c036aad96818d0b..891aaff8c54a152b3977bce5816d640e686ebf22 100644 (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();
index 501b0fe8b698bdc775a0201b0b4b253c63dd7550..10ecf1553a9917a58e62fd4ca4fe363c59bf0bef 100644 (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);
         }