VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add bitmaps to your menu! (this one works) from: www.gangstersoft.com

Mainframe  (4 Submissions)   Custom Controls/Forms/Menus   Visual Basic 5.0   Unknown Difficulty   Wed 4th July 2001   Mon 8th February 2021

Add bitmaps to your menu! (this one works) from: www.gangstersoft.com

API Declarations



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

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

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

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

Public Const MF_BITMAP = &H4&

Type MENUITEMINFO
cbSize As Long
fMask As Long
fType As Long
fState As Long
wID As Long
hSubMenu As Long
hbmpChecked As Long
hbmpUnchecked As Long
dwItemData As Long
dwTypeData As String
cch As Long
End Type

Declare Function GetMenuItemCount Lib "user32" _
(ByVal hMenu As Long) As Long

Declare Function GetMenuItemInfo Lib "user32" _
Alias "GetMenuItemInfoA" (ByVal hMenu As Long, _
ByVal un As Long, ByVal b As Boolean, _
lpMenuItemInfo As MENUITEMINFO) As Boolean

Public Declare Function SetMenuItemInfo Lib "user32" Alias "SetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Boolean, lpcMenuItemInfo As MENUITEMINFO) As Long


Rate Add bitmaps to your menu! (this one works) from: www.gangstersoft.com (2(2 Vote))
Add bitmaps to your menu! (this one works) from: www.gangstersoft.com.bas

Add bitmaps to your menu! (this one works) from: www.gangstersoft.com Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters