Provides access to members that control the ToolbarControl buddy.
Objects that implement the IToolbarBuddy interface can be passed to the IToolbarControl::SetBuddyControl method. The ToolbarControl will set properties on this interface in repsonse to the CurrentTool being set.
| Description | ||
|---|---|---|
![]() |
CurrentTool | Current active tool for the buddy. |
| CoClasses and Classes | Description |
|---|---|
| GlobeControl | ESRI GlobeControl |
| MapControl | ESRI MapControl |
| PageLayoutControl | ESRI PageLayoutControl |
| SceneControl | ESRI SceneControl |
When querying interface to IToolbarBuddy in Visual Basic 6.0 the Object property must be used. This is because Visual Basic 6.0 contains the real control inside a wrapper object known as an extender object.
Dim pToolbarBuddy As IToolbarBuddy
Set pToolbarBuddy = Form1.MapControl1.Object