|
-
Nov 2nd, 2000, 11:55 AM
#1
Thread Starter
Junior Member
hi all,
popup menu doesn't work after i added bitmaps to it
any solutions ?
waiting for F.B
thanx on advance
-
Nov 2nd, 2000, 03:54 PM
#2
Addicted Member
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!
-
Nov 2nd, 2000, 06:53 PM
#3
Member
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
-
Nov 3rd, 2000, 08:18 AM
#4
Member
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.
-
Nov 3rd, 2000, 08:42 AM
#5
Hyperactive Member
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.
-
Nov 3rd, 2000, 09:57 AM
#6
Thread Starter
Junior Member
thanx all,
i found the problem and it's fixed now
thanx again
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
|