|
-
July 27th, 2010, 05:13 AM
#4
Re: SetmenuItemBitmap
 Originally Posted by Turingmachine
I have a menu, I use this function to set a bitmap for my item
in the constructor
bmp.LoadBitmap(IDB_BITMAPX); // without error
and in the create menu section
menu.setmenuitembitmap(1,MF_BYPOSITION,&bmp,&bmp);
When I execute, I see nothing in the menu 
The way you do it looks correct, I don't know why it doesn't shows up
An "offside" note I would like add is to delete the loaded bitmap after you are done with it, that can be done in the destructor, like
if(bmp.m_hGdiobj){bmp.DestroyObject();}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|