ArcObjects Library Reference (Controls)  

ToolbarControl CoClass

Esri ToolbarControl

Product Availability

Available with ArcGIS Engine.


The ToolbarControl hooks up command objects to the MapControl, PageLayoutControl, GlobeControl and SceneControl and provides properties, methods and events for: managing the general appearance; setting the buddy; adding and removing items; setting the current tool; and customization.

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.


Interfaces Description
IConnectionPointContainer Supports connection points for connectable objects.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStreamInit Supports initialized stream-based persistence, regardless of whatever else the object does.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IToolbarControl Provides access to members that control the ToolbarControl.
IToolbarControl2 Provides access to members that control the ToolbarControl.
IToolbarControlDefault Provides access to members that control the ToolbarControl.

Event Interfaces

Interfaces Description
IToolbarControlEvents (default) Provides access to events that occur with interaction to the ToolbarControl.

Working with Events

[Visual Basic 6.0]

When working with ToolbarControl's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pToolbarControl as ToolbarControl