Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Call this member function to remove a tool tip from the screen if a tool tip is currently displayed.

static void PASCAL CancelToolTips(
   BOOL bKeys = FALSE 



TRUE to cancel tool tips when a key is pressed and set the status bar text to the default; otherwise FALSE.


Using this member function has no effect on tool tips managed by your code. It only affects the tool tip control managed by CWnd::EnableToolTips.

// 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))
   CEdit::OnMouseMove(nFlags, point);
© 2015 Microsoft