Improve company productivity with a Business Account.Sign Up

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

Different colored text in ComboBox without Subclassing

How to display multi colored text based on the added string  in the combobox(MFC) without subclassing

Thanks in advance
0
Harishsona
Asked:
Harishsona
2 Solutions
 
AndyAinscowFreelance programmer / ConsultantCommented:
Impossible.  You need to subclass
0
 
HarishsonaAuthor Commented:
Ok, with subclassing want to change text color for already added items or while adding the text based on string (Ex., Prefix "$" should get the RED Color and remaining normal)
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Well your original question was answered but here is an example about owner drawing a combo

http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_24111090.html

Just check which item you want to display and change the foreground (=text) colour as required.
0
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.

 
Deepu AbrahamR & D Engineering ManagerCommented:
0
 
Pramod BugudaiCommented:
Why don't you assign the points to AndyAinscow? He has already answered your question plus gave some extra ideas for your another question. I suggest ask these questions in a new thread.
0
 
EE_AutoDeleterCommented:
I've requested that this question be deleted for the following reason:

                           
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.


If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.


Use the specific format https:#axxxxxxxx for comment ID(s).


Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.


Experts-Exchange Auto Deleter
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Question is answered here.  https:#a34228281
Link to drawing subclassed combobox.  https:#a34228448
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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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