Help Center

CHeader.HitTestmethod

Tests a point to determine which header item, if any, is at the specified point.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION HitTest (BYVAL hHeader AS HWND, BYVAL phdhti AS HDHITTESTINFO PTR) AS LONG
FUNCTION HitTest (BYVAL hHeader AS HWND, BYREF hdhti AS HDHITTESTINFO) AS LONG
FUNCTION HitTest (BYVAL hHeader AS HWND) AS HDHITTESTINFO

Parameters

NameDescription
hHeaderThe handle of the header control.
phdhtiA pointer to an HDHITTESTINFO structure that contains the position to test and receives information about the results of the test.

Return value

Returns the index of the item at the specified position, if any, or -1 otherwise.

Description

Tests a point to determine which header item, if any, is at the specified point.

Reference

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