- _T("control must have toolbar as parent") );
-
- wxCHECK_MSG( pos <= GetToolsCount(), NULL,
- _T("invalid position in wxToolBar::InsertControl()") );
-
- wxToolBarToolBase *tool = CreateTool(control, label);
-
- if ( !InsertTool(pos, tool) )
- {
- delete tool;
-
- return NULL;
- }