TTM_HITTEST (Windows CE 5.0)

Send Feedback

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.

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Commctrl.h.

See Also

TOOLINFO | TTHITTESTINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.