TreeView_SetToolTips macro (commctrl.h)

Sets a tree-view control's child tooltip control. You can use this macro or send the TVM_SETTOOLTIPS message explicitly.

Syntax

HWND TreeView_SetToolTips(
   HWND hwnd,
   HWND hwndTT
);

Parameters

hwnd

Type: HWND

Handle to a tree-view control.

hwndTT

Type: HWND

Handle to a tooltip control.

Return value

Type: HWND

Returns the handle to tooltip control previously set for the tree-view control, or NULL if tooltips were not previously used.

Remarks

When created, tree-view controls automatically create a child tooltip control. To prevent a tree-view control from using tooltips, create the control with the TVS_NOTOOLTIPS style.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h

See also

TreeView_GetToolTips