Menu bitmaps

How do I add a bitmap too the left of a standard MFC menu selection (as is being done so often these days)?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
There is "Bitmap Menu" code available on 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.
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

flfmdllAuthor Commented:
Actually, jtwine's answer helped me the most.
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

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


-=- James.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.