Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize

CListCtrl::GetToolTips

Retrieves the tooltip control that the list view control uses to display tooltips.

CToolTipCtrl* GetToolTips( ) const;

A pointer to a CToolTipCtrl object to be used by the list control. If the Create member function uses the style LVS_NOTOOLTIPS, no tooltips are used, and NULL is returned.

This member function implements the behavior of the Win32 message LVM_GETTOOLTIPS, as described in the Windows SDK. The MFC implementation of GetToolTips returns a CToolTipCtrl object, which is used by the list control, rather than a handle to a tooltip control.


		CToolTipCtrl* pTip = m_myListCtrl.GetToolTips();
		if (NULL != pTip)
		{
			pTip->UpdateTipText(_T("I'm a list view!"), &m_myListCtrl,
				IDD_MYLISTCTRL);
		}


Header: afxcmn.h

Community Additions

ADD
Show:
© 2015 Microsoft