]>
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
= wxID_ANY
, const wxString
& title
= _T("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
= wxID_ANY
, const wxString
& title
= _T("wxToolBar Sample"),
40 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
42 void OnCloseWindow(wxCloseEvent
& event
);
43 void OnReparent(wxCommandEvent
& event
);
44 void OnSetSize_150_150(wxCommandEvent
&event
);
45 void OnSetSize_200_200(wxCommandEvent
&event
);
46 void OnSetMaxSize_150_150(wxCommandEvent
&event
);
47 void OnSetMaxSize_300_300(wxCommandEvent
&event
);
52 #define ID_TOOLBAR 500
53 #define ID_REPARENT 501