CWnd::CancelToolTips

도구 설명이 현재 표시 되어 있는 경우 도구 설명 화면에서 제거 하려면이 멤버 함수를 호출 합니다.

static void PASCAL CancelToolTips(
   BOOL bKeys = FALSE 
);

매개 변수

  • bKeys
    True 이면 취소 키를 누른 다음; 기본 상태 표시줄 텍스트를 설정 하는 도구 설명에 그렇지 않으면 거짓.

설명

[!참고]

이 멤버 함수를 사용 하 여 코드에서 관리 되는 도구 설명에는 주지 않습니다.이 관리 도구 설명 컨트롤에만 적용 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