Solved

Different colored text in ComboBox without Subclassing

Posted on 2010-11-28
8
61 Views
Last Modified: 2016-05-28
How to display multi colored text based on the added string  in the combobox(MFC) without subclassing

Thanks in advance
0
Comment
Question by:Harishsona
8 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 34228281
Impossible.  You need to subclass
0
 

Author Comment

by:Harishsona
ID: 34228433
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
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 500 total points
ID: 34228448
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 11

Expert Comment

by:DeepuAbrahamK
ID: 34359821
0
 
LVL 8

Expert Comment

by:Pramod Bugudai
ID: 38621177
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
 

Expert Comment

by:EE_AutoDeleter
ID: 41619422
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
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 41619423
Question is answered here.  https:#a34228281
Link to drawing subclassed combobox.  https:#a34228448
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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 …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

822 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