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_OWNER DRAW,2,&cb );
i=sub->SetMenuItemBitmaps( ID_TEST_CH OOSE,MF_BY COMMAND,&c b,&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
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_OWNER
i=sub->SetMenuItemBitmaps(
}
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
http://www.codeguru.com/menu/owner_drawn_menu3.shtml
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.