Quote Originally Posted by Turingmachine View Post
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();}