ToolBar Control Styles
CMFCToolBarButton Class has a set of style flags that determine the appearance and behavior of the button. You can set a combination of these flags by calling CMFCToolBarButton::SetStyle. This topic lists the style flag values and their meanings.
The following values determine the type of button that the control represents:
Standard pushbutton (default).
The start of a group of checkboxes.
The start of a group of buttons.
The following values represent the current status of the control:
Check box is checked.
Control is disabled.
Check box is in an indeterminate state.
Button is pressed.
The following value changes the layout of the button in the toolbar:
Places the item on a new line or in a new column without separating columns.
The current style is stored in CMFCToolBarButton::m_nStyle. Do not set a new value in m_nStyle directly, because some derived classes perform additional processing when you call SetStyles.
The visual manager determines the appearance of buttons in each state. See Visualization Manager for more information.