Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Bitmap in a CCombobox

Posted on 1998-09-09
8
Medium Priority
?
415 Views
Last Modified: 2013-11-20
Hi!

How do I implement a bitmap or icon in a CCombobox...
source code would be great...
0
Comment
Question by:Knallar
[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
  • 4
  • 3
8 Comments
 
LVL 7

Expert Comment

by:psdavis
ID: 1321924
Look at www.codeguru.com.  I believe that there are a lot of articles with full source code.

http://www.codeguru.com/combobox/index.shtml

Phillip
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1321925
Take a specific look at "Icon Picker Combo Box" by Joel Wahlberg at the above address.  It's got a specific combobox with icon support.

You may also want to look at using a ListView control instead.  You'll have much more flexibility including bitmaps and icon support built in.  Take a look at the codeguru site

http://www.codeguru.com/listview/index.shtml

for a incredible list of capabilities that could be found very useful.

Phillip


0
 

Author Comment

by:Knallar
ID: 1321926
Hey... that was new.. (from Joel)

but... I need a combobox with icons PLUS text..
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 7

Expert Comment

by:psdavis
ID: 1321927
I never found an example with both built right in, but I would try combining the multi-column combobox idea with the icon idea.

Phillip
0
 

Author Comment

by:Knallar
ID: 1321928
yes... but not nice...
maybe I have to stick the text into the bitmap....


0
 
LVL 7

Expert Comment

by:psdavis
ID: 1321929
I agree.  At least you'd be up and running in moments vs. days.

Have you looked that the CListCtrl?

Phillip
0
 

Author Comment

by:Knallar
ID: 1321930
Not yet...
0
 
LVL 2

Accepted Solution

by:
prasanth earned 200 total points
ID: 1321931
If you have VC++6 check out CComboBoxEx. If you don't have VC6, you can still use ComboBoxEx by getting the InetSDK from Microsoft. ComboBoxEx is a new common control found in IE4 enhanced Win95/NT systems and in Win98. It is also a separate DLL you can distribute for old plain Win95 machines
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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 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