Solved

How to gray out String in CComboBox

Posted on 2002-07-24
6
273 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 52
how to monitor remote shell execution on linux 9 104
format the code in java 6 101
post4 challenge 28 104
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.

860 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