|
5#
楼主 |
发表于 2013-12-23 19:55:47
|
只看该作者
忘记把内容写上来了,不过以下代码在office 2013 64位测试未通过,office2007 32位上正常使用
http://www.office-cn.net/forum.php?mod=viewthread&tid=92908
[API] 真正有效并且通用设置鼠标指针为手形及其它特定形状的方法
'在模块中声明API函数
Public Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
Public Declare Function LoadCursorByNum Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
'光标移到按钮上时变成手形
Private Sub Command0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
SetCursor LoadCursorByNum(0, 32649)
End Sub
也可以直接将按钮的“鼠标移动”属性设为:=SetCursor(LoadCursorByNum(0, 32649))
|
|