?
Solved

Menu bitmaps

Posted on 1998-03-05
6
Medium Priority
?
317 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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