Results 1 to 6 of 6

Thread: popup menu doesn't work

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    hi all,

    popup menu doesn't work after i added bitmaps to it

    any solutions ?

    waiting for F.B

    thanx on advance

    Ahmed Walid

  2. #2
    Addicted Member ShIzO's Avatar
    Join Date
    Apr 1999
    Location
    Bartlett, IL
    Posts
    189
    did you use standart microsoft popup menu or some custom activex control?

    visit www.vbaccelerator.com they got some great FREE controls including a POPUP control with bitmap option as well as background, dude!
    www.HardFind.com -buy/sell/trade your used hardware.

  3. #3
    Member
    Join Date
    Oct 2000
    Posts
    47

    Cool 4 simple api...

    Private Declare Function GetMenu Lib "user32" _
    (ByVal hwnd As Long) As Long

    Private Declare Function GetSubMenu Lib "user32" _
    (ByVal hMenu As Long, ByVal nPos As Long) As Long

    Private Declare Function GetMenuItemID Lib "user32" _
    (ByVal hMenu As Long, ByVal nPos As Long) As Long

    Private Declare Function SetMenuItemBitmaps Lib "user32" _
    (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As _
    Long, ByVal hBitmapUnchecked As Long, ByVal hBitmapChecked _
    As Long) As Long


    Private Sub Form_Load()
    Dim lngMenu As Long
    Dim lngSubMenu As Long
    Dim lngMenuItemID As Long
    Dim lngRet As Long

    lngMenu = GetMenu(Form1.hwnd)

    lngSubMenu = GetSubMenu(lngMenu, 0)

    lngMenuItemID = GetMenuItemID(lngSubMenu, 0)

    lngRet = SetMenuItemBitmaps(lngMenu, lngMenuItemID, 0, _
    Picture1.Picture, Picture1.Picture)

    End Sub

    DealMan

  4. #4
    Member
    Join Date
    Nov 2000
    Location
    Manila, Philippines
    Posts
    51
    Yeah, if you are into the Win32 API stuff to 'soup up' yer programs, you might as well get yer butt to http://www.vbaccelerator.com

    they got lots of pretty impressive stuff for free.

    Jonn
    Programmers dont byte, they just nibble a bit.

  5. #5
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    btw

    TrackPopupMenu gives you your !*Pop*!



    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Location
    mousafah,abu-dhabi,UAE
    Posts
    29
    thanx all,
    i found the problem and it's fixed now
    thanx again
    Ahmed Walid

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