?
Solved

Bitmap in a CCombobox

Posted on 1998-09-09
8
Medium Priority
?
404 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
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!

 
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

765 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