+ wxToolBarBase *tb = GetToolBar();
+ tb->InsertTool(0, wxID_PRINT, _T("New print"),
+ wxBITMAP(print), wxNullBitmap,
+ wxITEM_NORMAL,
+ _T("Delete this tool"),
+ _T("This button was inserted into the toolbar"));
+
+ // must call Realize() after adding a new button
+ tb->Realize();