• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 101
  • 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
 
AndyAinscowCommented:
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
 
AndyAinscowCommented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
AndyAinscowCommented:
Question is answered here.  https:#a34228281
Link to drawing subclassed combobox.  https:#a34228448
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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