Share via


CTreeCtrl::SetLineColor

Call this member function to set the current line color for the tree view control.

COLORREF SetLineColor( 
   COLORREF clrNew = CLR_DEFAULT  
);

Parameters

  • clrNew
    The new line color.

Return Value

The previous line color.

Remarks

This member function implements the behavior of the win32 message TVM_SETLINECOLOR, as described in the Windows SDK.

Example

COLORREF clrPrev = m_TreeCtrl.SetLineColor(RGB(255, 0, 0));

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::GetLineColor

Other Resources

CTreeCtrl Members