Condividi tramite


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;

Parameters

  • 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.

Remarks

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.

Requirements

Header: afxcmn.h

See Also

Reference

CToolTipCtrl Class

Hierarchy Chart

CToolTipCtrl::AddTool

CToolTipCtrl::DelTool

Other Resources

CToolTipCtrl Members