Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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 TTHITTESTINFOstructure 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 hwndmember of the structure to the handle to the tool and the ptmember to the coordinates of a point. If the point is within the rectangle, the timember of the TTHITTESTINFOstructure, which is a TOOLINFOstructure, receives information about the tool that occupies the point. You must set the cbSizemember of the TOOLINFOstructure 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
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also