Sdílet prostřednictvím


CTreeCtrl::SetToolTips

This member function implements the behavior of the Win32 message TVM_SETTOOLTIPS, as described in the Windows SDK.

CToolTipCtrl* SetToolTips(
   CToolTipCtrl* pWndTip 
);

Parameters

  • pWndTip
    A pointer to a CToolTipCtrl object that the tree control will use.

Return Value

A pointer to a CToolTipCtrl object containing the tooltip previously used by the control, or NULL if no tooltips were used previously.

Remarks

To use tooltips, indicate the TVS_NOTOOLTIPS style when you create the CTreeCtrl object.

Example

See the example for CTreeCtrl::GetToolTips.

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::GetToolTips

CTreeCtrl::Create

Other Resources

CTreeCtrl Members