?
Solved

Changing Text colour inside Listbox

Posted on 2000-04-22
2
Medium Priority
?
286 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
[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
 
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

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

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…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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