- GetToolBar()->InsertTool(0, wxID_PRINT, bmp, wxNullBitmap,
- FALSE, (wxObject *) NULL,
- "Delete this tool",
- "This button was inserted into the toolbar");
-
- GetToolBar()->Realize();
+ 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();