CToolBarCtrl::MarkButton

Sets the highlight state of a given button in a toolbar control.

BOOL MarkButton(
   int nID,
   BOOL fHighlight = TRUE 
);

Parameters

  • nID
    The button identifier.

  • fHighlight
    Specifies the highlight state to be set. By default, TRUE. If set to FALSE, the button is set to its default state.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This member function implements the behavior of the Win32 message TB_MARKBUTTON, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::IsButtonHighlighted

Other Resources

CToolBarCtrl Members