menu problem

Posted on 2003-11-23
Last Modified: 2013-11-20
i want to do 2 things with the menu

1) add bitmap as one of the menuitem
2) add icons to the menuitem.

i did this to achieve my aim

CMenu *sub=m_Menu.GetSubMenu(0);

CBitmap cb;
int i=sub->AppendMenu(MF_OWNERDRAW,2,&cb);

I am using a dialog based application. the value returned by append menu and setmenuitemsbitmap is 1; An item is added on the menu but no bitmap.

I read post on this subject in codeguru and also the various examples but they seem too complicated for me.

can someone help with a simple ans


Question by:anima_sg
LVL 48

Expert Comment

ID: 9805589

Accepted Solution

Computer101 earned 0 total points
ID: 11984805
PAQed, with points refunded (50)

E-E Admin

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 63
Generic progress indicator 6 117
Expand to include initial dialog with two choices. 9 78
sum13 challenge 24 107
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

773 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