CTreeCtrl::GetToolTips
This member function implements the behavior of the Win32 message TVM_GETTOOLTIPS, as described in the Windows SDK.
CToolTipCtrl* GetToolTips( ) const;
Возвращаемое значение
A pointer to a CToolTipCtrl object to be used by the tree control. If the Create member function uses the style TVS_NOTOOLTIPS, no tooltips are used, and NULL is returned.
Заметки
The MFC implementation of GetToolTips returns a CToolTipCtrl object, which is used by the tree control, rather than a handle to a tooltip control.
Пример
// If the tree control does not have a tooltips control,
// then use m_ToolTips as the tooltips for the tree control.
if (m_TreeCtrl.GetToolTips() == NULL)
{
m_TreeCtrl.SetToolTips(&m_ToolTips);
}
Требования
Header: afxcmn.h