CToolTipCtrl* GetToolTips( );
Return Value
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.
Remarks
This member function implements the behavior of the Win32 message TVM_GETTOOLTIPS, as described in the Platform SDK.
The MFC implementation of GetToolTips returns a CToolTipCtrl object, which is used by the tree control, rather than a handle to a tooltip control.
Example
// The pointer to my tree control.
extern CTreeCtrl* pmyTreeCtrl;
// A pointer to a tooltips control.
extern CToolTipCtrl* pmyToolTip;
// If the tree control does not have a tooltips control,
// then use pmyToolTip as the tooltips for the tree control.
if (pmyTreeCtrl->GetToolTips() == NULL)
{
pmyTreeCtrl->SetToolTips(pmyToolTip);
}
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::SetToolTips