- 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);
-
- void OnActivate( wxActivateEvent& event );
- void OnSysColourChanged( wxSysColourChangedEvent& event );
-
- // implementation
-
- wxMDIChildFrame *m_currentChild;
-
- void SetMDIMenuBar( wxMenuBar *menu_bar );
- virtual void GtkOnSize( int x, int y, int width, int height );
-
- private:
-
- wxMDIClientWindow *m_clientWindow;
- bool m_parentFrameActive;
-
- DECLARE_EVENT_TABLE()
+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);
+ }
+
+ virtual ~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;
+
+ virtual void GtkOnSize();
+ virtual void OnInternalIdle();
+
+protected:
+ void Init();
+ virtual bool HasVisibleMenubar() const;
+
+private:
+ friend class wxMDIChildFrame;
+
+ DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)