TTM_HITTEST
The
TTM_HITTEST message tests a point to determine whether it is within the
bounding rectangle of the specified tool and, if the point is within, retrieves
information about the tool.
TTM_HITTEST
wParam = 0;
lParam = (LPARAM) (LPHITTESTINFO) lphti;
Parameters
lphti
Pointer to a TTHITTESTINFO
structure. When sending the message, the hwnd member must specify the
handle of a tool and the pt member must specify the coordinates of a
point. If the return value is TRUE, the ti member (a TOOLINFO
structure) receives information about the tool that occupies the point. Before
sending this message, you must set the cbSize member of the ti
structure to sizeof(TOOLINFO).
Return Values
Returns TRUE
if the tool occupies the specified point or FALSE otherwise.
See Also