X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c52d95b412d81372e2705d5e1c03a0417af79ade..d85cfb3784a10430cc17618645fa66ff3df08040:/samples/mdi/mdi.h diff --git a/samples/mdi/mdi.h b/samples/mdi/mdi.h index 6efb5b61ad..796f40bbd0 100644 --- a/samples/mdi/mdi.h +++ b/samples/mdi/mdi.h @@ -5,11 +5,11 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#include +#include "wx/toolbar.h" // Define a new application class MyApp : public wxApp @@ -58,13 +58,19 @@ class MyChild: public wxMDIChildFrame { public: MyCanvas *canvas; - MyChild(wxMDIParentFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size, const long style); + MyChild(wxMDIParentFrame *parent, const wxString& title); ~MyChild(); void OnActivate(wxActivateEvent& event); void OnRefresh(wxCommandEvent& event); + void OnUpdateRefresh(wxUpdateUIEvent& event); + void OnChangeTitle(wxCommandEvent& event); + void OnChangePosition(wxCommandEvent& event); + void OnChangeSize(wxCommandEvent& event); void OnQuit(wxCommandEvent& event); + void OnSize(wxSizeEvent& event); + void OnMove(wxMoveEvent& event); void OnClose(wxCloseEvent& event); DECLARE_EVENT_TABLE() @@ -76,6 +82,9 @@ enum MDI_QUIT = 100, MDI_NEW_WINDOW, MDI_REFRESH, + MDI_CHANGE_TITLE, + MDI_CHANGE_POSITION, + MDI_CHANGE_SIZE, MDI_CHILD_QUIT, MDI_ABOUT };