Share via


CWnd::CancelToolTips

ツール ヒントが現在表示されて画面からツールヒントを削除するには、このメンバー関数を呼び出します。

static void PASCAL CancelToolTips(
   BOOL bKeys = FALSE 
);

パラメーター

  • bKeys
    キーが既定値にステータス バーのテキスト挿入され、設定されている場合に、ツール ヒントをキャンセル**[真]** ; それ FALSE

解説

[!メモ]

このメンバー関数を使用して、コードによって管理されるツール ヒントには影響しません。これは 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))
      CancelToolTips();
   CEdit::OnMouseMove(nFlags, point);
}

必要条件

ヘッダー: afxwin.h

参照

関連項目

CWnd クラス

階層図

CWnd::EnableToolTips

TTM_ACTIVATE