VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Create Multi-Column Menus in Visual Basic Using the WIN32

Anonymous  (267 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Mon 26th April 1999   Mon 8th February 2021

Create Multi-Column Menus in Visual Basic Using the WIN32

API Declarations


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

Private Const MF_MENUBARBREAK = &H20& ' columns with a separator line
Private Const MF_MENUBREAK = &H40& ' columns w/o a separator line
Private Const MF_STRING = &H0&
Private Const MF_HELP = &H4000&
Private Const MFS_DEFAULT = &H1000&
Private Const MIIM_ID = &H2
Private Const MIIM_SUBMENU = &H4
Private Const MIIM_TYPE = &H10
Private Const MIIM_DATA = &H20

Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetMenuItemInfo Lib "user32" Alias "GetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal B As Boolean, lpMenuItemInfo As MENUITEMINFO) As Long
Private Declare Function SetMenuItemInfo Lib "user32" Alias "SetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Boolean, lpcMenuItemInfo As MENUITEMINFO) As Long
Private Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long


Rate Create Multi-Column Menus in Visual Basic Using the WIN32 (2(2 Vote))
Create Multi-Column Menus in Visual Basic Using the WIN32.bas

Create Multi-Column Menus in Visual Basic Using the WIN32 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters