CTreeView.SetLineColormethod
Sets the current line color.
Syntax
FUNCTION SetLineColor (BYVAL hTreeView AS HWND, BYVAL clrLine AS COLORREF) AS COLORREF
Parameters
| Name | Description | |
|---|---|---|
hTreeView | The handle of the TreeView control. | |
clrLine | 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.
Description
Sets the current line color.
Remarks
This method only changes line colors. To change the colors of the plus sign (+) and minus sign (-) inside the buttons, use the SetTextColor macro.
Reference
- Include file
CTreeView.inc - Defined in AfxNova/CTreeView.inc:1185
- Documented in Windows/WIndows Controls/CTreeView Class.md
- Topic: CTreeView Class