-class wxMDIParentFrame: public wxFrame
-{
- 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 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 OnInternalIdle();
+
+protected:
+ void Init();
+ virtual void DoGetClientSize(int* width, int* height) const;
+
+private:
+ friend class wxMDIChildFrame;
+
+ DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)