Solved

Bitmap in a CCombobox

Posted on 1998-09-09
8
353 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

15 Experts available now in Live!

Get 1:1 Help Now