X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9032263ab28c99aa037d3b67068b2a1032e8957..0d1dff0172e94487c4aa2d830c714f93be73c7ec:/contrib/samples/canvas/simple/simple.h?ds=sidebyside diff --git a/contrib/samples/canvas/simple/simple.h b/contrib/samples/canvas/simple/simple.h index ab9e6ffb5c..eadf3f741b 100644 --- a/contrib/samples/canvas/simple/simple.h +++ b/contrib/samples/canvas/simple/simple.h @@ -19,6 +19,7 @@ #endif #include "wx/canvas/canvas.h" +#include "wx/timer.h" //---------------------------------------------------------------------------- // constants @@ -40,6 +41,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE ); + ~MyFrame(); private: // WDR: method declarations for MyFrame @@ -50,11 +52,13 @@ private: wxCanvasImage *m_smile1; wxCanvasImage *m_smile2; wxCanvasAdmin *m_admin; + wxTimer *m_timer; private: // WDR: handler declarations for MyFrame void OnQuit( wxCommandEvent &event ); void OnCloseWindow( wxCloseEvent &event ); + void OnTimer( wxTimerEvent &event ); private: DECLARE_EVENT_TABLE()