VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add Bitmaps To Menu

Philip Pierce  (1 Submission)   VB function enhancement   Visual Basic 5.0   Advanced   Wed 3rd February 2021

Demonstrates how to add bitmaps to menus using VB 5 or 6

API Declarations
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
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

Rate Add Bitmaps To Menu (8(8 Vote))

Download Add Bitmaps To Menu

Add Bitmaps To Menu Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters