[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

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?
0
fatassrat
Asked:
fatassrat
  • 2
2 Solutions
 
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now