- 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);
+ DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
+
+public:
+ wxMDIChildFrame();
+ 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();
+
+ 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();
+
+ // Handlers
+
+ bool HandleMDIActivate(long bActivate, WXHWND, WXHWND);
+ bool HandleSize(int x, int y, WXUINT);
+ 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();