Click to See Complete Forum and Search --> : Draw a menu


oldletter
October 16th, 2005, 06:21 PM
I do something like this but it doesn't show anything for me..

bmp=LoadBitmap(hinstance,"IDM_BITMAP1");
menu=CreateMenu();
AppendMenu(menu,MF_BITMAP,IDM_BITMAP1,MAKEINTRESOURCE(IDB_BMAP1));
SetMenu(winHand,menu);
DrawMenu(winHand);

I would like to use bitmap call IDM_BITMAP1 whose ID is IDB_BMAP1 as a menu but nothing seems to work out for me.
Thanks in advance for any help

Marc G
October 17th, 2005, 02:07 AM
AppendMenu requires a handle to the bitmap as last parameter and not the ID of the bitmap resource.