wxToolBar::ToggleTool

void ToggleTool(int toolIndex, Bool toggle)

Toggles a tool on or off.