Link to home
Start Free TrialLog in
Avatar of anima_sg
anima_sg

asked on

menu problem

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

Avatar of AlexFM
AlexFM

ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial