Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color of List box entries

Status
Not open for further replies.

Realazad

Programmer
Apr 5, 2002
15
0
0
US
Hi All,

I have a dialog based app consisting of a List box. I want to change the color of the entries that I add to the list box. Is it possible? How?

Thanks a lot

Azad
 
as far as i know the only way is to subclass the listbox control window and handle messages like WM_CTLCOLOR yourself. maybe you will have to do even the drawing yourself
 
I found a solution in MSDN -

Look here -

faq116-2035

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top