[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Changing Text colour inside Listbox

Posted on 2000-04-22
2
Medium Priority
?
293 Views
Last Modified: 2013-11-20
Hello,
I am having a listbox inside a dialogbox and I want to change the colour
of the specific items displayed in the listbox based on certain conditions. How to do it?
I tried OnCtlColor  function but it is changing the entire text colour of the
listbox.

Thanks,
S Rajesh
0
Comment
Question by:rajesh16
2 Comments
 
LVL 9

Expert Comment

by:cdesigner
ID: 2740222
make you class based on CListBox and paint items by self
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 225 total points
ID: 2740396
For a complete sample, see the ColorLB.ZIP file on my website at http://www.nwlink.com/~mikeblas/samples/ .

(Note that my webpage will eventually move to http://www.mooseboy.com/ )

..B ekiM
0

Featured Post

Technology Partners: 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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

834 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