virtual int CWnd::OnToolHitTest( CPoint point, TOOLINFO* pTI ) const;
Return Value
If 1, the tooltip control was found; If -1, the tooltip control was not found.
Parameters
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window
pTI
A pointer to a TOOLINFO structure. The following structure values are set by default:
Remarks
The framework calls this member function to detemine whether a point is in the bounding rectangle of the specified tool. If the point is in the rectangle, it retrieves information about the tool.
If the area with which the tooltip is associated is not a button, OnToolHitTest sets the structure flags to TTF_NOTBUTTON and TTF_CENTERTIP.
Override OnToolHitTest to provide different information than the default provides.
See TOOLINFO, in the Win32 SDK Programmer’s Reference, for more information about the structure.
CWnd Overview | Class Members | Hierarchy Chart
See Also TOOLINFO, CWnd::FilterTooltipMessage