Freigeben über


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

Concepts

CTreeCtrl Class

CTreeCtrl Members

Hierarchy Chart

CTreeCtrl::GetLineColor