I want to add pictures to a menu (that is, create a menu with pictures in front of the menu items), but I don't know how to do...
Thank you!
Thank you!
You use the SetMenuItemBitmap function
BOOL SetMenuItemBitmaps( HMENU hMenu,
UINT uPosition,
UINT uFlags,
HBITMAP hBitmapUnchecked,
HBITMAP hBitmapChecked
);
Donkey
BOOL SetMenuItemBitmaps( HMENU hMenu,
UINT uPosition,
UINT uFlags,
HBITMAP hBitmapUnchecked,
HBITMAP hBitmapChecked
);
Donkey
If you add bitmaps with the API donkey mentioned the image will be inverted when it's selected. If you don't want this you probably need to create an owner-drawn menu. IIRC vom-bonjour had some example code for this.
Thomas
Thomas