Solved

CComboBox with Multiple Columns

Posted on 1997-08-05
1
299 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

7 Experts available now in Live!

Get 1:1 Help Now