Solved

Menu bitmaps

Posted on 1998-03-05
6
278 Views
Last Modified: 2013-11-20
How do I add a bitmap too the left of a standard MFC menu selection (as is being done so often these days)?
0
Comment
Question by:flfmdll
6 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 0 total points
Comment Utility
You have to make an onwerdraw menu. Apps like Office and IE and the Visual STudio IDE itself use _tons_ of custom code to draw menus completely from scratch. That UI ends up being called a "command bar".

Command bars aren't provided by Windows inherently; if you want that complete look, you've got to roll your own.

.B ekiM
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
There is "Bitmap Menu" code available on www.codeguru.com as well...

BTW: I believe command bars are the ones that have the menu share the same horiz "ToolBar space".  Windows CE and IE4 do this, the VStudio IDE does not (you can put something above or below the menu, but not along-side it).

   I believe it can be simulated by creating a window without a standard menu, creating a ReBar control, and place your menu in a ReBarBand with your ToolBars.  Add the Pager Control for in place scrolling.

-=- James.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:flfmdll
Comment Utility
Actually, jtwine's answer helped me the most.
0
 
LVL 11

Expert Comment

by:mikeblas
Comment Utility
Gosh, then you should've given him the points!

A "command bar" right now isn't supplied by the system, so there's no standard for its implementation. IE does them inside of rebars and hacks the daylights out of the menu-handling code. The IDE implementation uses a completely owner-drawn approach and holds the item inside of a CCommandBar-like object, but clips the docking code so that the object always has its own row. You can do the same thing with a rebar-based implemnetation, but it doesn't matter because neither implementation is exposed to the public.

.B ekiM

0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  No biggie... :)  It is gonna be a LOOOONG time before I am in the top 15, anyway! :P

  Peace!

-=- James.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

10 Experts available now in Live!

Get 1:1 Help Now