Help Center

CToolbar.MarkButtonmethod

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

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION MarkButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL fHighlight AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier for a toolbar button.
fHighlightTRUE to highlight the button; FALSE to set the button to its default state.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

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

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:944
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class