回复 2楼 风吹过b
您说的这个我已猜到,的有具体的例子吗?,另外:
API右键菜单怎么调用自定义函数呢?具体函数如下:
Public Function AddCallBack(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Select Case wMsg
Case WM_COMMAND '消息
Select Case wParam
Case WM_USER + IDM_CUT
UserForm1.cmd剪切
Case WM_USER + IDM_CREAT
UserForm1.TreeView1.Cmd添加
Case WM_USER + IDM_PASTE
UserForm1.TreeView1.cmd粘贴
End Select
End Select
AddCallBack = CallWindowProc(OldProc, hwnd, wMsg, wParam, lParam)
End Function
剪切、添加、粘帖函数在按钮点击时已通过测试,请教和API右键菜单的关联问题?
谢谢!