CHeader.HitTestmethod
Tests a point to determine which header item, if any, is at the specified point.
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
| Name | Description | |
|---|---|---|
hHeader | The handle of the header control. | |
phdhti | A 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