[This is preliminary documentation and subject to change.]
The IToolbar interface is used to create new toolbars, to add items to them, to extend them and to display the resultant toolbars. Each toolbar is created on its own band within the control bar.
You use IToolbar whenever your snap-in will be enhanced by the presence of toolbars.
IUnknown Methods | Description |
---|---|
QueryInterface | Returns pointers to supported interfaces. |
AddRef | Increments reference count. |
Release | Decrements reference count. |
IToolbar Methods | Description |
AddBitmap | Adds an image to the toolbar |
AddButtons | Adds an array of buttons to the toolbar |
InsertButton | Adds a single button to the toolbar |
DeleteButton | Removes a button |
GetButtonState | Gets an attribute of a button |
SetButtonState | Sets an attribute of a button |