Click to See Complete Forum and Search --> : MFC List Control: How to change the colors in a list control?


Gabriel Fleseriu
February 14th, 2003, 08:36 AM
Q: How to change the colors in a list control?

A:


Change the background color in the list control:


m_myListControl.SetBkColor(RGB(160,184,207));

<br>
Change the text color in the list control:


m_myListControl.SetTextColor(RGB(100,100,100));

<br>
Change the background color of text:


m_myListControl.SetTextBkColor(RGB(160,184,207));


<br><br>