X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3013b6f46099b8cf0d2f9f656e883e4606ca833d..fae05df5a988883e9c6683ccded766dfb7b84b1b:/samples/wxpoem/wxpoem.h diff --git a/samples/wxpoem/wxpoem.h b/samples/wxpoem/wxpoem.h index 6be433bff4..ea2e00e40f 100644 --- a/samples/wxpoem/wxpoem.h +++ b/samples/wxpoem/wxpoem.h @@ -29,7 +29,7 @@ class MyApp: public wxApp DECLARE_APP(MyApp) // Define a new canvas which can receive some events -class MyCanvas: public wxPanel +class MyCanvas: public wxWindow { public: MyCanvas(wxFrame *frame, wxWindowID id, const wxPoint& pos, const wxSize& size); @@ -47,6 +47,7 @@ class MainWindow: public wxFrame public: MyCanvas *canvas; MainWindow(wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style); + ~MainWindow(); void OnCloseWindow(wxCloseEvent& event); void OnChar(wxKeyEvent& event);