Solved

menu problem

Posted on 2003-11-23
4
235 Views
Last Modified: 2013-11-20
hi,
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);
if(sub!=NULL)
{

CBitmap cb;
cb.LoadBitmap(IDB_BITMAP1);
int i=sub->AppendMenu(MF_OWNERDRAW,2,&cb);
i=sub->SetMenuItemBitmaps(ID_TEST_CHOOSE,MF_BYCOMMAND,&cb,&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

thanx

0
Comment
Question by:anima_sg
4 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9805589
0
 
LVL 1

Accepted Solution

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

Computer101
E-E Admin
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
scoreUp challenge 14 63
Not needed 13 119
Is there a simple front-end menu system. 9 102
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: 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 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.

808 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