Results 1 to 8 of 8

Thread: Does anyone know how to add bitmaps to a POPUP MENU yet???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    There has to be a way to do this...?!?

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146
    the api-call is called "SetMenuItemBitmaps", but i don't know, how to use it.....

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    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!!!!!!!!!!!!!!!!!!!!!!!

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    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

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Sorry... there is a typo above... it should be ImageList1 across the board there, not ImageList2.

  7. #7
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Don't loose your patiance


  8. #8
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84
    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
  •  



Click Here to Expand Forum to Full Width