Help Center

CToolbar.SetAnchorHighlightmethod

Sets the anchor highlight setting for a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetAnchorHighlight (BYVAL hToolbar AS HWND, BYVAL fAnchor AS BOOLEAN) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
fAnchorBOOL value that specifies if anchor highlighting is enabled or disabled. If this value is nonzero, anchor highlighting will be enabled. If this value is zero, anchor highlighting will be disabled.

Return value

Returns the previous anchor highlight setting. If this value is nonzero, anchor highlighting was enabled. If this value is zero, anchor highlighting was disabled.

Description

Sets the anchor highlight setting for a toolbar.

Remarks

Anchor highlighting in a toolbar means that the last highlighted item will remain highlighted until another item is highlighted. This occurs even if the cursor leaves the toolbar control.

Reference

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