|
-
May 21st, 1999, 03:12 AM
#1
Set different color for different columns
I would like to set the color of the CListCtrl column text to different colors.
As SetTextColor(blue) will set the entire CListCtrl to blue.(Not the specific column that I want.)
To summarize of what I want...
Column1 Column2 Column3
White Blue Red
Blue Blue Green
Please help.....
-
May 21st, 1999, 05:39 AM
#2
Re: Set different color for different columns
Hi,
if you want to set column or row specific colors you have to use the style LVS_OWNERDRAWFIXED. The overridden member function DrawItem is then called for each item in the list control to be drawn. This member function has to do all the drawings and text printings so you can set the colors you want.
Greetings, Jörg
-
May 23rd, 1999, 10:54 PM
#3
Re: Set different color for different columns
Do you have a example code for that purpose?
Thanks.
-
May 25th, 1999, 05:55 PM
#4
Re: Set different color for different columns
-
May 26th, 1999, 12:09 AM
#5
Re: Set different color for different columns
I have got it up already actually. but thanks anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|