Solved

menu problem

Posted on 2003-11-23
4
231 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

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

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…
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…
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 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

11 Experts available now in Live!

Get 1:1 Help Now