CToolTipCtrl::GetToolInfo

BOOL GetToolInfo( CToolInfo& CToolInfo, CWnd* pWnd, UINT nIDTool = 0) const;

Return Value

Nonzero if successful; otherwise 0.

Parameters

CToolInfo  Reference to a TOOLINFO object that receives the tool’s text.

pWnd

Pointer to the window that contains the tool.

nIDTool

ID of the tool.

Remarks

Call this function to retrieve the information that a tool tip control maintains about a tool. The hwnd and uId members of the TOOLINFO structure referenced by CToolInfo identify the tool. If that tool has been registered with the tool tip control through a previous call to AddTool, the TOOLINFO structure is filled with information about the tool.

CToolTipCtrl OverviewClass MembersHierarchy Chart

See Also   CToolTipCtrl::AddTool