Solved

Changing Text colour inside Listbox

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Handling string inputs in C/Linux 23 167
mixString challenge 36 98
Line meaning 9 77
Making an alias 7 52
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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. …
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.
This video discusses moving either the default database or any database to a new volume.

705 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now