CMFCToolBarButton::OnToolHitTest
Called by the framework when the parent toolbar must determine whether a point is in the bounding rectangle of the button.
virtual BOOL OnToolHitTest(
const CWnd* pWnd,
TOOLINFO* pTI
);
Parameters
[in] pWnd
The parent window of the button. Can be NULL.[in] pTI
A TOOLINFO structure that contains information about a tool in a tooltip control.
Return Value
The result of OnMenuButtonToolHitTest if the button can retrieve a pointer to the parent frame window; otherwise FALSE.
Remarks
This method calls one of the following methods if it can convert the parent window to a valid frame object:
Requirements
Header: afxtoolbarbutton.h
See Also
Reference
CMDIFrameWndEx::OnMenuButtonToolHitTest