- public:
- // ctor(s)
-
- MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
-
- // event handlers (these functions should _not_ be virtual)
- void OnQuit(wxCommandEvent& event);
- void OnAbout(wxCommandEvent& event);
-
- void OnPrintSetup(wxCommandEvent& event);
- void OnPageSetup(wxCommandEvent& event);
- void OnPrint(wxCommandEvent& event);
- void OnPreview(wxCommandEvent& event);
- void OnOpen(wxCommandEvent& event);
-
-
- private:
- wxHtmlWindow *m_Html;
- wxHtmlEasyPrinting *m_Prn;
- wxString m_Name;
- // any class wishing to process wxWindows events must use this macro
- DECLARE_EVENT_TABLE()
+public:
+ // ctor and dtor
+
+ MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
+ virtual ~MyFrame();
+
+ // event handlers (these functions should _not_ be virtual)
+ void OnQuit(wxCommandEvent& event);
+ void OnAbout(wxCommandEvent& event);
+
+ void OnPageSetup(wxCommandEvent& event);
+ void OnPrint(wxCommandEvent& event);
+ void OnPreview(wxCommandEvent& event);
+ void OnOpen(wxCommandEvent& event);
+
+ void OnPrintSmall(wxCommandEvent& event);
+ void OnPrintNormal(wxCommandEvent& event);
+ void OnPrintHuge(wxCommandEvent& event);
+
+
+private:
+ wxHtmlWindow *m_Html;
+ wxHtmlEasyPrinting *m_Prn;
+ wxString m_Name;
+
+ // any class wishing to process wxWidgets events must use this macro
+ DECLARE_EVENT_TABLE()