Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CTreeCtrl::SetLineColor

 

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


      COLORREF SetLineColor(
   COLORREF clrNew = CLR_DEFAULT 
);

clrNew

The new line color.

The previous line color.

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

Show: