Help Center

CToolbar.GetHotItemmethod

Retrieves the index of the hot item in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION GetHotItem (BYVAL hToolbar AS HWND) AS DWORD

Parameters

NameDescription
hToolbarHandle to the toolbar control.

Return value

Returns the index of the hot item, or -1 if no hot item is set. Toolbar controls that do not have the TBSTYLE_FLAT style do not have hot items.

Description

Retrieves the index of the hot item in a toolbar.

Reference

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