Export (0) Print
Expand All
Expand Minimize

CMFCToolBar::SetButtonStyle

Sets the style of the toolbar button at the given index.

virtual void SetButtonStyle(
   int nIndex,
   UINT nStyle 
);

[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.

This method removes the TBBS_PRESSED style if nStyle is TBBS_DISABLED because the user cannot click a disabled button.

Header: afxtoolbar.h

Show:
© 2014 Microsoft