VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add Bitmaps To Menu

by Philip Pierce (1 Submission)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

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

Download Add Bitmaps To Menu

Download Add Bitmaps To Menu (5 KB)

Add Bitmaps To Menu Comments

No comments have been posted about Add Bitmaps To Menu. Why not be the first to post a comment about Add Bitmaps To Menu.

Post your comment

Subject:
Message:
0/1000 characters