CRebar.HitTestmethod
Determines which portion of a rebar band is at a given point on the screen, if a rebar band exists at that point.
Syntax
FUNCTION HitTest (BYVAL hRebar AS HWND, BYREF rhbt AS RBHITTESTINFO) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRebar | The handle of the Rebar control. | |
rhbt | Pointer to an RBHITTESTINFO structure. Before sending the message, the pt member of this structure must be initialized to the point that will be hit tested, in client coordinates. |
Return value
Returns the zero-based index of the band at the given point, or -1 if no rebar band was at the point.
Description
Determines which portion of a rebar band is at a given point on the screen, if a rebar band exists at that point.
Reference
- Include file
CRebar.inc - Defined in AfxNova/CRebar.inc:411
- Documented in Windows/WIndows Controls/CRebar Class.md
- Topic: CRebar Class