- DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
-
- friend class wxMDIChildFrame;
-
- public:
-
- wxMDIParentFrame(void);
- wxMDIParentFrame( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
- ~wxMDIParentFrame(void);
- bool Create( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
-
-
- void GetClientSize(int *width, int *height) const;
- wxMDIChildFrame *GetActiveChild(void) const;
-
- wxMDIClientWindow *GetClientWindow(void) const;
- virtual wxMDIClientWindow *OnCreateClient(void);
-
- virtual void Cascade(void) {};
- virtual void Tile(void) {};
- virtual void ArrangeIcons(void) {};
- virtual void ActivateNext(void);
- virtual void ActivatePrevious(void);
+public:
+ wxMDIParentFrame() { Init(); }
+ wxMDIParentFrame(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr)
+ {
+ Init();
+
+ (void)Create(parent, id, title, pos, size, style, name);
+ }
+
+ ~wxMDIParentFrame();
+ bool Create( wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr );
+
+ wxMDIChildFrame *GetActiveChild() const;
+
+ wxMDIClientWindow *GetClientWindow() const;
+ virtual wxMDIClientWindow *OnCreateClient();
+
+ virtual void Cascade() {}
+ virtual void Tile(wxOrientation WXUNUSED(orient) = wxHORIZONTAL) {}
+ virtual void ArrangeIcons() {}
+ virtual void ActivateNext();
+ virtual void ActivatePrevious();
+
+ // implementation
+
+ wxMDIClientWindow *m_clientWindow;
+ bool m_justInserted;