X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2b3ccc524ad5024fac46a40cd3639ebe7cc0de4..0141d2c9bd1033b773847447029f4598b7d9e90e:/samples/minifram/test.h diff --git a/samples/minifram/test.h b/samples/minifram/test.h index db0f7dc5da..f228439556 100644 --- a/samples/minifram/test.h +++ b/samples/minifram/test.h @@ -19,17 +19,32 @@ class MyApp: public wxApp bool InitToolbar(wxToolBar* toolBar); }; +// Define a new mini frame +class MyMiniFrame: public wxMiniFrame +{ +public: + MyMiniFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample", + const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize ); + + void OnCloseWindow(wxCloseEvent& event); + void OnReparent(wxCommandEvent& event); + +DECLARE_EVENT_TABLE() +}; + // Define a new frame -class MyFrame: public wxMiniFrame +class MyMainFrame: public wxFrame { public: - MyFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample", + MyMainFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize ); void OnCloseWindow(wxCloseEvent& event); + void OnReparent(wxCommandEvent& event); DECLARE_EVENT_TABLE() }; -#define ID_TOOLBAR 500 +#define ID_TOOLBAR 500 +#define ID_REPARENT 501