Freigeben über


CMFCToolBar::SetButtonStyle

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

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

ToolBar Control Styles