|
-
Apr 24th, 2000, 09:41 PM
#1
Thread Starter
Lively Member
There has to be a way to do this...?!?
-
Apr 24th, 2000, 09:46 PM
#2
Addicted Member
the api-call is called "SetMenuItemBitmaps", but i don't know, how to use it.....
-
Apr 24th, 2000, 09:51 PM
#3
Thread Starter
Lively Member
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!!!!!!!!!!!!!!!!!!!!!!!
-
Apr 24th, 2000, 10:00 PM
#4
Fanatic Member
-
Apr 24th, 2000, 10:47 PM
#5
Thread Starter
Lively Member
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
-
Apr 24th, 2000, 10:49 PM
#6
Thread Starter
Lively Member
Sorry... there is a typo above... it should be ImageList1 across the board there, not ImageList2.
-
Apr 24th, 2000, 11:35 PM
#7
Registered User
Don't loose your patiance
-
May 4th, 2000, 05:55 PM
#8
Lively Member
came across this tip at vbsquare's website and I remembered you post ...
take a look at :
http://www.vbsquare.com/api/tip400.html
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
|