Help Center

CToolbar.HighlightButtonmethod

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

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION HighlightButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS BOOLEAN
Also documented as UnhighlightButton — one description covers them all.

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier for a toolbar button.

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:949
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class