Solved

Bitmap in a CCombobox

Posted on 1998-09-09
8
366 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need Help INsttalling wget on Mavericks OS X 3 90
repeatEnd java challenge 42 84
Looking for a specific application/software 2 104
EvenOdd challenge 10 88
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now