// wxToolBar creation
// ----------------------------------------------------------------------------
-wxToolBar::wxToolBar()
-{
- Init();
-}
-
-wxToolBar::wxToolBar(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name)
-{
- Init();
-
- Create(parent, id, pos, size, style, name);
-}
-
void wxToolBar::Init()
{
// no tools yet
const wxString& strArg)
{
wxToolBarTool *tool = (wxToolBarTool*) FindById(numArg);
+ if (!tool)
+ return false;
if ( action == wxACTION_TOOLBAR_TOGGLE )
{