List Control

How to change the color of the particular column in the
report view list control, i am using MFC CListCtrl class.
Who is Participating?
Answers2000Connect With a Mentor Commented:
The built in control can't do this, unless you opt to paint it yourself (by overriding DrawItem)

Fortunately, somebody else has already written the code for you.

For a whole set of articles go to 

Look for an article called
"Change the background color of individual columns - Zafir Anjum" which is 19th from the bottom of the page in the section titled "Background color and image".  Sample code is there.

subbiAuthor Commented:
code  preferable
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.