- DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
- public:
-
- wxMDIChildFrame(void);
- inline wxMDIChildFrame(wxMDIParentFrame *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr)
- {
- Create(parent, id, title, pos, size, style, name);
- }
-
- ~wxMDIChildFrame(void);
-
- bool Create(wxMDIParentFrame *parent,
- wxWindowID id,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxFrameNameStr);
-
- // Set menu bar
- void SetMenuBar(wxMenuBar *menu_bar);
- void SetClientSize(int width, int height);
- void GetPosition(int *x, int *y) const ;
-
- // MDI operations
- virtual void Maximize(void);
- virtual void Restore(void);
- virtual void Activate(void);
-
- // Handlers
-
- long MSWOnMDIActivate(long bActivate, WXHWND, WXHWND);
- void MSWOnSize(int x, int y, WXUINT);
- void MSWOnWindowPosChanging(void *lpPos);
- bool MSWOnCommand(WXWORD id, WXWORD cmd, WXHWND control);
- long MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
- bool MSWProcessMessage(WXMSG *msg);
- bool MSWTranslateMessage(WXMSG *msg);
- void MSWDestroyWindow(void);
-
- // Implementation
+public:
+ wxMDIChildFrame() { Init(); }
+ wxMDIChildFrame(wxMDIParentFrame *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const wxString& name = wxFrameNameStr)
+ {
+ Init();
+
+ Create(parent, id, title, pos, size, style, name);
+ }
+
+ ~wxMDIChildFrame();
+
+ bool Create(wxMDIParentFrame *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const wxString& name = wxFrameNameStr);
+
+ virtual bool IsTopLevel() const { return FALSE; }
+
+ // MDI operations
+ virtual void Maximize(bool maximize = TRUE);
+ virtual void Restore();
+ virtual void Activate();
+
+ // Implementation only from now on
+ // -------------------------------
+
+ // Handlers
+ bool HandleMDIActivate(long bActivate, WXHWND, WXHWND);
+ bool HandleWindowPosChanging(void *lpPos);
+ bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
+
+ virtual long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+ virtual long MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+ virtual bool MSWTranslateMessage(WXMSG *msg);
+
+ virtual void MSWDestroyWindow();
+