Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Menu bitmaps

Posted on 1998-03-05
6
Medium Priority
?
320 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
[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
6 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 0 total points
ID: 1316796
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
ID: 1316797
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1316798
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
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!

 

Author Comment

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

Expert Comment

by:mikeblas
ID: 1316800
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
ID: 1316801
  No biggie... :)  It is gonna be a LOOOONG time before I am in the top 15, anyway! :P

  Peace!

-=- James.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

610 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