CWnd::OnToolHitTest
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 structure. The following structure values are set by default:
hwnd = m_hWnd Handle to a window
uId = (UINT)hWndChild Handle to a child window
uFlags |= TTF_IDISHWND Handle of the tool
lpszText = LPSTR_TEXTCALLBACK Pointer to the string that is to be displayed in the specified window
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 , in the Win32 SDK Programmer’s Reference, for more information about the structure.
CWnd Overview | Class Members | Hierarchy Chart
See Also , CWnd::FilterTooltipMessage