Solved

Bitmap in a CCombobox

Posted on 1998-09-09
8
399 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

696 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