TreeView_SetLineColor macro (commctrl.h)
Sets the current line color. You can also use the TVM_SETLINECOLOR message directly.
Syntax
COLORREF TreeView_SetLineColor(
HWND hwnd,
COLORREF 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
Type: COLORREF
Returns the previous line color.
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 |