LHITTESTINFO structure (commctrl.h)

Used to get information about the link corresponding to a given location.

Syntax

typedef struct tagLHITTESTINFO {
  POINT pt;
  LITEM item;
} LHITTESTINFO, *PLHITTESTINFO;

Members

pt

Type: POINT

Location for the hit-test, in client coordinates (not screen coordinates).

item

Type: LITEM

Receives information about the link corresponding to pt.

Remarks

To convert from screen coordinates to client coordinates, use ScreenToClient.

Note  If the LM_HITTEST message succeeds, the system fills in LITEM.iLink and LITEM.szID. If the LM_HITTEST message fails, do not assume that any information in LITEM is valid.
 

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header commctrl.h

See also

LM_HITTEST

Other Resources

Reference

ScreenToClient