|
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales
Call center available M-F 9:00 - 6:00 US Eastern Time. U.S. and Canada International Email |
'Stretch' a Toolbar to Fill the Entire Width of the Application
Author: Mike Palmatier
Posted: October 21, 2005
Environment: Visual Basic 6.0
The CommandBars.EnableDocking method is used to apply the xtpFlagStretched flag from the XTPToolBarFlags
enumeration. This will keep 'stretch' the toolbar the entire width (if horizontal) of the application, even when there are not enough buttons to
fill the toolbar. With the xtpFlagStretched flag, no other toolbars can be docked on the same row. Note that this is the default
setting given to the ActiveMenuBar.
Dim ToolBar As CommandBar
Set ToolBar = CommandBars.Add("Standard", xtpBarTop) ToolBar.EnableDocking xtpFlagStretched |
