Solved

CComboBox with Multiple Columns

Posted on 1997-08-05
1
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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!

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 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