The style flags for toolbar buttons are stored in SECStdBtn::m_nStyle. In addition, you can clone and create buttons through the user interface. Applying a style to a specific button is difficult because you need to use a style template.
You can use the following button style macros as parameters in the button map. They can be logically OR'ed with the button state macros.
Button style macro | Equivalent to | Description |
TBBS_BUTTON | TBSTYLE_BUTTON | Standard button |
TBBS_SEPARATOR | TBSTYLE_SEP | Separator |
TBBS_CHECKBOX | TBSTYLE_CHECK | Auto check button |
TBBS_GROUP | TBSTYLE_GROUP | Marks the start of a group. |
TBBS_CHECKGROUP | TBBS_GROUP | TBBS_CHECKBOX | Marks the start of a group of check buttons. |
You can use the following button state macros as style parameters with the button map macros. You can logically OR'ed them with the button style macros.
Button state macro | Equivalent to | Description |
TBBS_CHECKED | TBSTATE_CHECKED | Button is checked/down. |
TBBS_PRESSED | TBSTATE_PRESSED | Button is being depressed. |
TBBS_DISABLED | TBSTATE_ENABLED | Button is disabled. |
TBBS_INDETERMINATE | TBSTATE_INDETERMINATE | Third state |
TBBS_HIDDEN | TBSTATE_HIDDEN | Button is hidden. |
TBBS_WRAPPED | TBSTATE_WRAP | Button is wrapped at this point. |
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.