Solved

Menu bitmaps

Posted on 1998-03-05
6
307 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
Independent Software Vendors: 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
Complete beginner needs help making a cron job 9 131
has22 challenge 11 107
wordmultiple challenge 12 157
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…
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…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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