There has to be a way to do this...?!?
Printable View
There has to be a way to do this...?!?
the api-call is called "SetMenuItemBitmaps", but i don't know, how to use it.....
I KNOW HOW DO ADD BITMAPS TO A MENU.... I WANT TO KNOW HOW TO ADD THEM TO A ********POPUP MENU***********
FOR THOSE OF YOU IN THE CHEAP SEATS I'LL SAY IT AGAIN
*******POPUP MENU*********
THAT'S ****POPUP MENU****
POPUP MENU!!!!!!!!!!!!!!!!!!!!!!!
Relax ...
http://www.vbaccelerator.com/overctl.htm
Thanks Paul... took about 15 mins to get it working but it does work great!! Here's the code I'm using for anyone interested.
Get the dll's from the link above and reference them in your project... then create your popup menu. Then add this code:
Public cIM As New cIconMenu
Private Sub Form_Load()
With cIM
.Attach Me.hWnd
.ImageList = ImageList1 'your image list of icons
.IconIndex("Open") = ImageList2.ListImages(1).Index
.IconIndex("Save") = ImageList2.ListImages(2).Index
End With
End Sub
Sorry... there is a typo above... it should be ImageList1 across the board there, not ImageList2.
came across this tip at vbsquare's website and I remembered you post ...
take a look at :
http://www.vbsquare.com/api/tip400.html