Solved

Colour of combo box items

Posted on 2003-11-18
1
172 Views
Last Modified: 2013-11-20
How can I change the colour of individual list items in a combo box?  It must affect individual items, not the whole list.  Also, it needs to be interchangable at run time (i.e. I set it to one colour when initialising and then later decide to change it to something else).
0
Comment
Question by:reidy_boy
1 Comment
 
LVL 11

Accepted Solution

by:
KurtVon earned 50 total points
ID: 9771149
The only way I know of to do this would be an owner draw combo box.  You will need to draw the text yourself, but you can choose the color for the item when you draw it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn014.asp

Hope this helps.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bigDiff challenge 17 84
NotAlone Challenge 20 80
Modbus - whats the maximum I can store in one register? 4 78
wordmultiple challenge 12 121
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

20 Experts available now in Live!

Get 1:1 Help Now