• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

List Control

How to change the color of the particular column in the
report view list control, i am using MFC CListCtrl class.
0
subbi
Asked:
subbi
1 Solution
 
subbiAuthor Commented:
code  preferable
0
 
Answers2000Commented:
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
http://www.codeguru.com/listview/index.shtml 

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.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now