Solved

How to gray out String in CComboBox

Posted on 2002-07-24
6
270 Views
Last Modified: 2013-11-20
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
Comment
Question by:fatassrat
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
migel earned 25 total points
ID: 7175438
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
 

Author Comment

by:fatassrat
ID: 7175476
Yes i want the strings grayed out and disabled
Is there an easier way besides using OwnerDraw?
0
 
LVL 4

Expert Comment

by:mblat
ID: 7175657
no, but here is the link to control that impelements what functionality....

hope it helps...
0
 
LVL 4

Assisted Solution

by:mblat
mblat earned 25 total points
ID: 7175973
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

18 Experts available now in Live!

Get 1:1 Help Now