X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2140f27355ebb6bc13d4fa1855689d181ca60aa1..89b3361ec25cf1e6d255b14c7633d8375646e4fb:/samples/mdi/mdi.h diff --git a/samples/mdi/mdi.h b/samples/mdi/mdi.h index 82a5330c37..4d84f6cf49 100644 --- a/samples/mdi/mdi.h +++ b/samples/mdi/mdi.h @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/toolbar.h" @@ -94,6 +94,26 @@ private: MyCanvas *m_canvas; + // simple test event handler class + class EventHandler : public wxEvtHandler + { + public: + EventHandler(unsigned numChild) : m_numChild(numChild) { } + + private: + void OnRefresh(wxCommandEvent& event) + { + wxLogMessage("Child #%u refreshed.", m_numChild); + event.Skip(); + } + + const unsigned m_numChild; + + DECLARE_EVENT_TABLE() + + wxDECLARE_NO_COPY_CLASS(EventHandler); + }; + DECLARE_EVENT_TABLE() };