-class wxMDIParentFrame: public wxFrame
-{
- DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
-
- friend class wxMDIChildFrame;
-
- public:
-
- wxMDIParentFrame(void);
- wxMDIParentFrame( wxWindow *parent,
- const wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- const long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
- ~wxMDIParentFrame(void);
- bool Create( wxWindow *parent,
- const wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- const long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
-
- void OnSize( wxSizeEvent& event );
- void OnActivate( wxActivateEvent& event );
-
- void SetMenuBar( wxMenuBar *menu_bar );
- 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 OnSysColourChanged(wxSysColourChangedEvent& event);
-
- protected:
- wxMDIClientWindow * m_clientWindow;
- wxMDIChildFrame * m_currentChild;
- bool m_parentFrameActive;
-
-// DECLARE_EVENT_TABLE()
+ // implement base class pure virtuals
+ // ----------------------------------
+
+ virtual void ActivateNext();
+ virtual void ActivatePrevious();
+
+ static bool IsTDI() { return true; }
+
+ // implementation
+
+ bool m_justInserted;
+
+ virtual void GtkOnSize( int x, int y, int width, int height );
+ virtual void OnInternalIdle();
+
+private:
+ void Init();
+
+ DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)