vb的菜单栏图标设置了为什么显示不出来??
PrivateSubform_Load()DimiAsIntegerDimmenu1AsLongDimmenuidAsLongmenu1=GetMenu(Me.hwnd)...
Private Sub form_Load()
Dim i As Integer
Dim menu1 As Long
Dim menuid As Long
menu1 = GetMenu(Me.hwnd)
For i = 1 To 4
menuid = GetMenuItemID(GetSubMenu(menu1, 0), i - 1)
SetMenuItemBitmaps menu1, menuid, MF_bitmap, Image1.Picture, Image1.Picture
next
end sub
、哪里出错了?是图片的问题吗?? 展开
Dim i As Integer
Dim menu1 As Long
Dim menuid As Long
menu1 = GetMenu(Me.hwnd)
For i = 1 To 4
menuid = GetMenuItemID(GetSubMenu(menu1, 0), i - 1)
SetMenuItemBitmaps menu1, menuid, MF_bitmap, Image1.Picture, Image1.Picture
next
end sub
、哪里出错了?是图片的问题吗?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询