Поделиться через


CToolTipCtrl::GetText

Retrieves the text that a tool tip control maintains for a tool.

void GetText(
   CString& str,
   CWnd* pWnd,
   UINT_PTR nIDTool = 0 
) const;

Параметры

  • str
    Reference to a CString object that receives the tool's text.

  • pWnd
    Pointer to the window that contains the tool.

  • nIDTool
    ID of the tool.

Заметки

The pWnd and nIDTool parameters identify the tool. If that tool has been previously registered with the tool tip control through a previous call to CToolTipCtrl::AddTool, the object referenced by the str parameter is assigned the tool's text.

Требования

Header: afxcmn.h

См. также

Основные понятия

CToolTipCtrl Class

CToolTipCtrl Members

Hierarchy Chart

CToolTipCtrl::AddTool

CToolTipCtrl::DelTool