X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..2d5efafe74f3788bfd3b3d8b1e8e13135a595ed5:/demos/poem/wxpoem.h diff --git a/demos/poem/wxpoem.h b/demos/poem/wxpoem.h index 6f84d621fe..c8975779c2 100644 --- a/demos/poem/wxpoem.h +++ b/demos/poem/wxpoem.h @@ -14,6 +14,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifndef _WXPOEM_H_ +#define _WXPOEM_H_ + + // Define a new application class MyApp: public wxApp { @@ -29,7 +33,7 @@ class MyCanvas: public wxWindow { public: MyCanvas(wxFrame *frame); - ~MyCanvas(); + virtual ~MyCanvas(); void OnPaint(wxPaintEvent& event); void OnMouseEvent(wxMouseEvent& event); @@ -46,8 +50,9 @@ class MainWindow: public wxFrame { public: MyCanvas *canvas; - MainWindow(wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style); - ~MainWindow(); + MainWindow(wxFrame *frame, wxWindowID id, const wxString& title, + const wxPoint& pos, const wxSize& size, long style); + virtual ~MainWindow(); void OnCloseWindow(wxCloseEvent& event); void OnChar(wxKeyEvent& event); @@ -107,3 +112,5 @@ enum POEM_SEARCH = wxID_FIND, POEM_MINIMIZE = wxID_ICONIZE_FRAME }; + +#endif // _WXPOEM_H_