Link to home
Start Free TrialLog in
Avatar of IssacJones
IssacJones

asked on

Color Items in a Combo Box

Hi

What is the easiest way to get a combo box (in MFC) to change the colour of certain items in a combo box. For example, suppose there are three items in the combo: A, B and C. I want A to be red, B to be green and C to be blue. I may also want to change these colours at runtime.

What is the best way to do this?

Thanks in advance

John
Avatar of alb66
alb66
Flag of Italy image

You need an owner draw combo box.

See this article:
http://www.codeproject.com/KB/combobox/colorpicker.aspx
ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial