Loading a bitmap next to a menu
-
Hi i'm trying to load a bitmap in a menu. I'm using this code, in the create function of the mainframe, but i'm not succesful: [CODE]bmp.LoadBitmap(IDB_BITMAP2); this->GetMenu()->GetSubMenu(2)->SetMenuItemBitmaps(1,MF_BYPOSITION,&bmp,&bmp); [/CODE] In the menu properties, the item number one, is checked. what am i doing wrong? thanks
-
Hi i'm trying to load a bitmap in a menu. I'm using this code, in the create function of the mainframe, but i'm not succesful: [CODE]bmp.LoadBitmap(IDB_BITMAP2); this->GetMenu()->GetSubMenu(2)->SetMenuItemBitmaps(1,MF_BYPOSITION,&bmp,&bmp); [/CODE] In the menu properties, the item number one, is checked. what am i doing wrong? thanks
Have you cross-checked your code against any of the multitude of examples on http://www.codeproject.com/menu/[^]. If the code is ok, have you tried adding some error checking to see if any of the calls fails?