Solved

menu problem

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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: 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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

20 Experts available now in Live!

Get 1:1 Help Now