Solved

List Control

Posted on 1998-08-17
2
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 74
repeatSeparator  java  challenge 13 58
Tab names are off by one 5 54
sumHeights  challenge 17 80
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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