Solved

Adding icons to menus

Posted on 1999-01-27
4
175 Views
Last Modified: 2013-11-20
How do I add icons to menus similar to those in MS Office and Visual Studio??
0
Comment
Question by:jmfernau
4 Comments
 

Expert Comment

by:sankar012898
ID: 1328386
goto  www.codeguru.com/

There are lot of  sample applications for ICON BASED MENU
(Owner drawn menu ) like Office
     
0
 

Expert Comment

by:palapyean
ID: 1328387
do you mean to add icon to the tool bar or creating the new tool bar?
0
 
LVL 3

Accepted Solution

by:
luisr earned 100 total points
ID: 1328388
See the MSJ January 1998 article by Paul DiLascia (and download the code from www.microsoft.com/msj)

His class, CCoolMenuManager is very simple to use, something like this:

    // In the CMainFrame class definition
    CCoolMenuManager m_coolMenu;

    // In CMainFrame::OnCreate
    m_coolMenu.Install(this);
    m_coolMenu.LoadToolbar(IDR_MAINFRAME);

and that's it, you have menus with perfectly working bitmaps on them.

0
 

Author Comment

by:jmfernau
ID: 1328389
that will work!! thanks a lot!!

Jon
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now