kensheehimura1
Programmer
good day,
Help pls.. i created a control that will put a bitmap on the menu of my visual basic application, i got a good result but i have one problem, ...because i have 3 menus(File,Edit,Help), but when i run the program only the "File" menu has the bitmap on it, the other 2 menu have not,
Public Sub LoadMenuBitmap()
Dim hMenuBar As Long
Dim hMenu As Long
Dim lngMenuItems As Long
Dim lngCurrMenuItem As Long
hMenuBar = GetMenu(Me.hwnd)
hMenu = GetSubMenu(hMenuBar, 0)
lngMenuItems = GetMenuItemCount(hMenu)
For lngCurrMenuItem = 0 To lngMenuItems - 1
If lngCurrMenuItem <> lngMenuItems - 2 Then
Call SetMenuItemBitmaps(hMenu, lngCurrMenuItem, MF_BYPOSITION, picIndia(lngCurrMenuItem), picIndia(lngCurrMenuItem))
End If
Next lngCurrMenuItem
End Sub
thanks,
Help pls.. i created a control that will put a bitmap on the menu of my visual basic application, i got a good result but i have one problem, ...because i have 3 menus(File,Edit,Help), but when i run the program only the "File" menu has the bitmap on it, the other 2 menu have not,
Public Sub LoadMenuBitmap()
Dim hMenuBar As Long
Dim hMenu As Long
Dim lngMenuItems As Long
Dim lngCurrMenuItem As Long
hMenuBar = GetMenu(Me.hwnd)
hMenu = GetSubMenu(hMenuBar, 0)
lngMenuItems = GetMenuItemCount(hMenu)
For lngCurrMenuItem = 0 To lngMenuItems - 1
If lngCurrMenuItem <> lngMenuItems - 2 Then
Call SetMenuItemBitmaps(hMenu, lngCurrMenuItem, MF_BYPOSITION, picIndia(lngCurrMenuItem), picIndia(lngCurrMenuItem))
End If
Next lngCurrMenuItem
End Sub
thanks,