load
这个控件的具体路径是什么?
这个控件的具体路径是什么?
解决方案 »
- 有一段代码,我想在各种开发工具能调用,也可以在各种操作系统下面运行,应该怎么做?
- 在CSDN里找不到解决方法的打包后安装问题,在线急等?
- Sub Main()一定要在公共模块中才能运行吗?
- 时间控制在文本框里自动每隔3秒输入"ABC我始终-123"
- 通过VB ADO ODBC连接SQLSERVER为何30秒它会自己确认连接,有没有方法把30改大
- “区域”为何不能重复使用呢???
- 100分 PICTRUE 使用中的问题
- 做过酒店管理的朋友请进来看看
- VB基础问题
- 请问有用过treeview控件的吗?
- 请问 Outlook Express 的邮件帐户信息保存在什么地方?
- 如何让treeview控件自动展开.
多得很假如您想程序实现需要用API'This project needs a form with a menu with at least one submenu
'It also needs a picturebox, Picture1, that contains a small b/w bitmap
Const MF_BYPOSITION = &H400&
Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long
Private 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
Private Sub Form_Load()
'KPD-Team 2000
'URL: [email protected]
'E-Mail: [email protected]
Dim hMenu As Long, hSubMenu As Long
'get the handle of the menu
hMenu = GetMenu(Me.hwnd)
'check if there's a menu
If hMenu = 0 Then
MsgBox "This form doesn't have a menu!"
Exit Sub
End If
'get the first submenu
hSubMenu = GetSubMenu(hMenu, 0)
'check if there's a submenu
If hSubMenu = 0 Then
MsgBox "This form doesn't have a submenu!"
Exit Sub
End If
'set the menu bitmap
SetMenuItemBitmaps hSubMenu, 0, MF_BYPOSITION, Picture1.Picture, Picture1.Picture
End Sub
http://www.datadynamics.com/freeactiveX在
www.vbgood.com
www.applevb.com
www.vbeden.com
www.21code.com
看看