]>
git.saurik.com Git - wxWidgets.git/blob - samples/minifram/minifram.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolBar sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/minifram.h"
14 // Define a new application
15 class MyApp
: public wxApp
19 bool InitToolbar(wxToolBar
* toolBar
);
22 // Define a new mini frame
23 class MyMiniFrame
: public wxMiniFrame
26 MyMiniFrame(wxFrame
*parent
, wxWindowID id
= -1, const wxString
& title
= "wxToolBar Sample",
27 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
29 void OnCloseWindow(wxCloseEvent
& event
);
30 void OnReparent(wxCommandEvent
& event
);
36 class MyMainFrame
: public wxFrame
39 MyMainFrame(wxFrame
*parent
, wxWindowID id
= -1, const wxString
& title
= "wxToolBar Sample",
40 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
42 void OnCloseWindow(wxCloseEvent
& event
);
43 void OnReparent(wxCommandEvent
& event
);
48 #define ID_TOOLBAR 500
49 #define ID_REPARENT 501