Advertisement
2_2002-2004 Miscellaneous #123724

Another way to place images within menu

Places images in the menu

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
'	Add one form to the project.
'	Add a picturebox (Autosize = True) with a bitmap (not an icon!!!), max. 13X13
'	Add a commandbutton with following code:
Private Sub Form_Load()
hMenu& = GetMenu(Form1.hwnd)
hSubMenu& = GetSubMenu(hMenu&, 0)
hID& = GetMenuItemID(hSubMenu&, 0)
SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, _
Picture1.Picture, _
Picture1.Picture
End Sub  
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı