Class CToolBarCtrl provides many styles that affect the appearance (and, occasionally, the behavior) of the toolbar object. Modify the toolbar object by setting the dwCtrlStyle parameter of the CToolBarCtrl::Create (or CToolBar::CreateEx) member function, when you first create the toolbar control.
The following styles affect the "3D" aspect of the toolbar buttons and the placement of the button text:
Note To prevent repaint problems, the TBSTYLE_FLAT and TBSTYLE_TRANSPARENT styles should be set before the toolbar object is visible.
The following styles determine if the toolbar allows a user to reposition individual buttons within a toolbar object using drag and drop:
Note The CCS_ADJUSTABLE style must be specified to enable toolbar buttons to be dragged.
The remaining styles affect visual and nonvisual aspects of the toolbar object:
For a complete listing of toolbar styles and extended styles, see Toolbar Control and Button Styles and Toolbar Extended Styles in the Platform SDK.
See Also Windows Common Controls and MFC Classes,