GetToolBar

Method of IToolBarManager

Finds or creates toolbar instance by name

Return Value

JavaScript

var ppToolBar = ToolBarManager.GetToolBar(strToolbarID, bCreate, bVisible);

Visual Basic Script

ppToolBar = ToolBarManager.GetToolBar strToolbarID, bCreate, bVisible

C++

CComPtr<IToolBar> pToolBar;
HRESULT hr = ToolBarManager.GetToolBar(strToolbarID, bCreate, bVisible, &pToolBar);