Link to home
Start Free TrialLog in
Avatar of rossom
rossom

asked on

Using bitmaps in menu items

How do you use the API in order to attach bitmap images to items in a drop down menu?
ASKER CERTIFIED SOLUTION
Avatar of jjmartin
jjmartin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tward
tward

This doesn't seem to work?
It works on my PC running VB5, where is the code failing on you?
 x = SetMenuItemBitmaps(hMenu, menuID, &H4, img.ListImages(i).Picture, img.ListImages(i).Picture)

seems to be returning 0?

I cut your code out to see if it would work so it is exactly as above!

Sorry,

  It does work here also, I had ICONS in the ImageList instead of Bitmaps.