TreeView_SetLineColor macro (commctrl.h)

Sets the current line color. You can also use the TVM_SETLINECOLOR message directly.

Syntax

void TreeView_SetLineColor(
   hwnd,
   clr
);

Parameters

hwnd

Type: HWND

Handle to the tree-view control.

clr

Type: COLORREF

A COLORREF that specifies the new line color. Use the CLR_DEFAULT value to restore the system default colors.

Return value

None

Remarks

This message only changes line colors. To change the colors of the plus sign (+) and minus sign (-) inside the buttons, use the TreeView_SetTextColor macro.

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

TVM_SETLINECOLOR