- 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, // Scrolling refers to client window
- const wxString& name = wxFrameNameStr)
- {
- Init();
- 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);
-
- // Mac OS activate event
- virtual void MacActivate(long timestamp, bool activating);
-
- // wxWidgets activate event
- void OnActivate(wxActivateEvent& event);
- void OnSysColourChanged(wxSysColourChangedEvent& event);
-
- void SetMenuBar(wxMenuBar *menu_bar);
-
- // Get the active MDI child window (Windows only)
- wxMDIChildFrame *GetActiveChild() const ;
-
- // Get the client window
- inline wxMDIClientWindow *GetClientWindow() const { return m_clientWindow; };
- // Get rect to be used to center top-level children
- virtual void GetRectForTopLevelChildren(int *x, int *y, int *w, int *h);
-
- // Create the client window class (don't Create the window,
- // just return a new class)
- virtual wxMDIClientWindow *OnCreateClient() ;
-
- // MDI operations
- virtual void Cascade();
- virtual void Tile(wxOrientation WXUNUSED(orient) = wxHORIZONTAL);
- virtual void ArrangeIcons();
- virtual void ActivateNext();
- virtual void ActivatePrevious();
-
- virtual bool Show( bool show = true );
-
- // overridden base clas virtuals
- virtual void AddChild(wxWindowBase *child);
- virtual void RemoveChild(wxWindowBase *child);
+ // wxWidgets activate event
+ void OnActivate(wxActivateEvent& event);
+ void OnSysColourChanged(wxSysColourChangedEvent& event);
+
+ void SetMenuBar(wxMenuBar *menu_bar);
+
+ // Get rect to be used to center top-level children
+ virtual void GetRectForTopLevelChildren(int *x, int *y, int *w, int *h);