How to gray out String in CComboBox

I use AddString to add particular strings to the edit box of a combobox and now i want to gray out particular strings. How would i do this?
fatassratAsked:
Who is Participating?
 
migelCommented:
Hi!
There are no standrad styles APIs classes for such tasks
but you can derive your own class from CComboBox and use OwnerDraw mechanism to solve your problem.
Do you want also disable combo`s edit field for grayed strings?
0
 
fatassratAuthor Commented:
Yes i want the strings grayed out and disabled
Is there an easier way besides using OwnerDraw?
0
 
mblatCommented:
no, but here is the link to control that impelements what functionality....

hope it helps...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.