Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the style of the toolbar button at the given index.
virtual void SetButtonStyle(
int nIndex,
UINT nStyle
);
Parameters
[in] nIndex
The zero-based index of the toolbar button whose style is to be set.[in] nStyle
The style of the button. See ToolBar Control Styles for the list of available toolbar button styles.
Remarks
This method removes the TBBS_PRESSED style if nStyle is TBBS_DISABLED because the user cannot click a disabled button.
Requirements
Header: afxtoolbar.h