Solved

CComboBox with Multiple Columns

Posted on 1997-08-05
1
349 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

737 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