+ void OnUpdateRefresh(wxUpdateUIEvent& event);
+ void OnChangeTitle(wxCommandEvent& event);
+ void OnChangePosition(wxCommandEvent& event);
+ void OnChangeSize(wxCommandEvent& event);
+ void OnClose(wxCommandEvent& event);
+ void OnSize(wxSizeEvent& event);
+ void OnMove(wxMoveEvent& event);
+ void OnCloseWindow(wxCloseEvent& event);
+
+#if wxUSE_CLIPBOARD
+ void OnPaste(wxCommandEvent& event);
+ void OnUpdatePaste(wxUpdateUIEvent& event);
+#endif // wxUSE_CLIPBOARD
+
+ static unsigned ms_numChildren;
+
+ 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);
+ };