A `control' is a single item in a toolbar or menu--for example, a toolbar button, menu item, or submenu. A control is represented by a CommandBarControl object. The collection of all the controls in a toolbar or menu (a CommandBar) is represented by a CommandBarControls object (that is, the object returned by CommandBar.Controls ).
The CommandBarControl interface is a generic interface of common properties and methods shared by CommandBarButton and CommandBarPopup. In effect, a CommandBarButton is a CommandBarControl with CommandBarControl.Type equal to `1' (button); similarly, a CommandBarPopup has CommandBarControl.Type equal to `5' (menu).
Copyright © SoftQuad Software Inc. 1999