TreeView_SetToolTips macro

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 hwndTV,
   HWND hwndTooltip
);

Parameters

hwndTV

Type: HWND

Handle to a tree-view control.

hwndTooltip

Type: HWND

Handle to a tooltip control.

Return value

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

TreeView_GetToolTips

 

 

Show: