Compartir a través de


TTM_HITTEST (Compact 2013)

3/28/2014

This message tests a point to determine whether the point is within the bounding rectangle of a specified tool and, if the point is within the rectangle, retrieves information about the tool.

Syntax

TTM_HITTEST wParam = 0;
    lParam = (LPARAM) (LPHITTESTINFO) lphti;

Parameters

  • wParam
    Not used. Set to 0.
  • lphti
    Pointer to a TTHITTESTINFO structure that contains information that a ToolTip control uses to determine whether a point is within the bounding rectangle of a specified tool. When you send the message, set the hwnd member of the structure to the handle to the tool and the pt member to the coordinates of a point. If the point is within the rectangle, the ti member of the TTHITTESTINFO structure, which is a TOOLINFO structure, receives information about the tool that occupies the point. You must set the cbSize member of the TOOLINFO structure before you send this message.

Return Value

TRUE indicates that the point is within the bounding rectangle of the specified tool. FALSE indicates that the point in not within the bounding rectangle of the specified tool.

Requirements

Header

commctrl.h

See Also

Reference

ToolTips Messages
TOOLINFO
TTHITTESTINFO