Bitmap in a CCombobox

Hi!

How do I implement a bitmap or icon in a CCombobox...
source code would be great...
KnallarAsked:
Who is Participating?
 
prasanthCommented:
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
 
psdavisCommented:
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
 
psdavisCommented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
KnallarAuthor Commented:
Hey... that was new.. (from Joel)

but... I need a combobox with icons PLUS text..
0
 
psdavisCommented:
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
 
KnallarAuthor Commented:
yes... but not nice...
maybe I have to stick the text into the bitmap....


0
 
psdavisCommented:
I agree.  At least you'd be up and running in moments vs. days.

Have you looked that the CListCtrl?

Phillip
0
 
KnallarAuthor Commented:
Not yet...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.