COXToolTipCtrl::HitTest

Dundas

COXToolTipCtrl::HitTest

Members | Overview

BOOL HitTest(CWnd* pWnd, POINT pt, OXTOOLINFO* pToolInfo) const

Parameters

pWnd

Pointer to the window that contains the tool.

pt

Pointer to a CPoint object containing the coordinates of the point to be tested.

pToolInfo

Pointer to a OXTOOLINFO structure that contains information about the tool.

Return Value

TRUE if the point specified by the hit-test information is within the toolÂ’s bounding rectangle; otherwise FALSE.

Remarks

Returns TRUE if the given pt is in the windows toolinfo bounding rectangle (pt is in client coordinates relative to the parent window). If this function returns TRUE the structure pointed to by pToolInfo is populated with information about the corresponding tool.

See the overview for information on the OXTOOLINFO structure.