Solved

CComboBox with Multiple Columns

Posted on 1997-08-05
1
316 Views
Last Modified: 2013-11-20
How do I modify the CComboBox to support multiple columns. Thankyou for you help, please email responses to  jlundgre@igate.sprint.com AND lundgren@qni.com
0
Comment
Question by:lundgren
1 Comment
 
LVL 4

Accepted Solution

by:
davmarc earned 100 total points
ID: 1303085
You necessarily have to implement an owner-draw combo box.
In particular follow the following steps:
1) Derive your own class from MFC's CComboBox
2) Implement the virtual functions you need among DrawItem(), MeasureItem(), CompareItem() and DeleteItem(). They allow you to put your custom drawing code to accomplish extended appearances.
You may also want to store additional data for the multiple columns of your combo boxes; add some data members to your CComboBox derived class and refer to them in your owner drawing code.

I am sending a copy of this answer to the two E-Mail addresses you gave, too. Remember to grade this answer on Expert Exchange anyway!

Davide Marcato.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
while loop over for loop 7 93
has77  challenge 9 73
Fibonacci challenge 11 112
how to use laptop or pad camera in vb.net windows application 2 55
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

28 Experts available now in Live!

Get 1:1 Help Now