TreeView_SetLineColor macro
Sets the current line color. You can also use the TVM_SETLINECOLOR message directly.
Syntax
COLORREF TreeView_SetLineColor( HWND hwndTV, COLORREF clrLine );
Parameters
- hwndTV
-
Type: HWND
Handle to the tree-view control.
- clrLine
-
Type: COLORREF
A COLORREF that specifies the new line color. Use the CLR_DEFAULT value to restore the system default colors.
Return value
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
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
Show: