X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13437238cd39f51b1b528ecb9fe138f711bcf87c..6a570331df89d26dfb682bedab0faf13e2c285d8:/samples/toolbar/test.h?ds=sidebyside diff --git a/samples/toolbar/test.h b/samples/toolbar/test.h index ac9dea8d1b..81ad6c421b 100644 --- a/samples/toolbar/test.h +++ b/samples/toolbar/test.h @@ -17,6 +17,17 @@ class MyApp: public wxApp bool InitToolbar(wxToolBar* toolBar); }; +class MyTimer : public wxTimer +{ +public: + MyTimer(wxFrame *frame) { m_frame = frame; } + + virtual void Notify() { wxLogStatus(m_frame, _T("Timer arrived!") ); } + +private: + wxFrame *m_frame; +}; + // Define a new frame class MyFrame: public wxFrame { @@ -34,6 +45,8 @@ public: private: wxTextCtrl* m_textWindow; -DECLARE_EVENT_TABLE() + DECLARE_EVENT_TABLE() }; +#define ID_TOOLBAR 500 +