static void PASCAL CancelToolTips( BOOL bKeys = FALSE );
Parameters
bKeys
TRUE to cancel tooltips when a key is pressed and set the status bar text to the default; otherwise FALSE.
Remarks
Call this member function to remove a tooltip from the screen if a tooltip is currently displayed.
Note Using this member function has no effect on tooltips managed by your code. It only affects the tooltip control managed by CWnd::EnableToolTips.
Example
// In this example, tool tips were set up to
// pop up when the user moves the mouse
// over this edit control.
// If the mouse is moved to the upper left-hand
// corner, the tool tip would disappear because of
// calling CancelToolTips.
void CMyEdit::OnMouseMove(UINT nFlags, CPoint point)
{
CRect corner(0, 0, 10, 10);
if (corner.PtInRect(point))
CancelToolTips();
CEdit::OnMouseMove(nFlags, point);
}
CWnd Overview | Class Members | Hierarchy Chart
See Also EnableToolTips, TTM_ACTIVATE