Solved

Changing Text colour inside Listbox

Posted on 2000-04-22
2
281 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 75 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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