Solved

List Control

Posted on 1998-08-17
2
197 Views
Last Modified: 2013-11-20
How to change the color of the particular column in the
report view list control, i am using MFC CListCtrl class.
0
Comment
Question by:subbi
2 Comments
 

Author Comment

by:subbi
ID: 1320939
code  preferable
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 50 total points
ID: 1320940
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 94
Macro to save highlighted rows as a separate file 5 45
NotAlone Challenge 20 84
sumHeights  challenge 17 73
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question