#include "wx/frame.h"
#include "wx/notebook.h"
-class WXDLLEXPORT wxMDIClientWindow;
-class WXDLLEXPORT wxMDIChildFrame;
+class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow;
+class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
-class WXDLLEXPORT wxMDIParentFrame: public wxFrame
+class WXDLLIMPEXP_CORE wxMDIParentFrame: public wxFrame
{
DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
- friend class WXDLLEXPORT wxMDIChildFrame;
+ friend class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;
public:
wxMDIParentFrame();
Create(parent, id, title, pos, size, style, name);
}
- ~wxMDIParentFrame();
+ virtual ~wxMDIParentFrame();
bool Create(wxWindow *parent,
wxWindowID id,
DECLARE_EVENT_TABLE()
};
-class WXDLLEXPORT wxMDIChildFrame: public wxFrame
+class WXDLLIMPEXP_CORE wxMDIChildFrame: public wxFrame
{
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
Create(parent, id, title, pos, size, style, name);
}
- ~wxMDIChildFrame();
+ virtual ~wxMDIChildFrame();
bool Create(wxMDIParentFrame *parent,
wxWindowID id,
void ReleaseMouse();
void Raise();
void Lower(void);
- void DoSetSizeHints(int minW = wxDefaultCoord,
- int minH = wxDefaultCoord,
- int maxW = wxDefaultCoord,
- int maxH = wxDefaultCoord,
- int incW = wxDefaultCoord,
- int incH = wxDefaultCoord);
// MDI operations
virtual void Maximize();
void DoGetClientSize(int *width, int *height) const;
void DoGetSize(int *width, int *height) const;
void DoGetPosition(int *x, int *y) const ;
+ void DoSetSizeHints(int minW, int minH,
+ int maxW, int maxH,
+ int incW, int incH);
};
/* The client window is a child of the parent MDI frame, and itself
* of the children. Phew! So the children are sort of 'adopted'...
*/
-class WXDLLEXPORT wxMDIClientWindow: public wxNotebook
+class WXDLLIMPEXP_CORE wxMDIClientWindow: public wxNotebook
{
DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
CreateClient(parent, style);
}
- ~wxMDIClientWindow();
+ virtual ~wxMDIClientWindow();
// Note: this is virtual, to allow overridden behaviour.
virtual bool CreateClient(wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL);
void OnScroll(wxScrollEvent& event);
// Implementation
- void OnPageChanged(wxNotebookEvent& event);
+ void OnPageChanged(wxBookCtrlEvent& event);
int FindPage(const wxNotebookPage* page);