Solved

Different colored text in ComboBox without Subclassing

Posted on 2010-11-28
8
44 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 47
if loop in java 3 114
has77  challenge 9 67
Sed question 2 48
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

13 Experts available now in Live!

Get 1:1 Help Now