Partilhar via


CToolBarCtrl::IsButtonHighlighted

Checks the highlight state of a toolbar button.

BOOL IsButtonHighlighted(
   int nID 
) const;

Parameters

  • [in] nID
    The command ID for the toolbar button.

Return Value

Positive integer if the button is highlighted, 0 if the button is not highlighted, or -1 if an error occurs.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::IsButtonChecked

CToolBarCtrl::IsButtonIndeterminate

CToolBarCtrl::IsButtonHidden

CToolBarCtrl::IsButtonEnabled

CToolBarCtrl::IsButtonPressed

CToolBarCtrl::MarkButton

Other Resources

CToolBarCtrl Members