标题:如何取得指针位置
取消只看楼主
ybfq65
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2017-1-23
 问题点数:0 回复次数:0 
如何取得指针位置
老师们邦我看看这个:
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Type POINTAPI
        x As Long
        y As Long
End Type

Private Sub Form_Load()

End Sub

Private Sub Timer1_Timer()
Dim lpPonit As POINTAPI
GetCursorPos lpPonit
Me.Caption = "X = " & lpPoint.x & " Y = " & lpPoint.y
End Sub
运行后说缺少对象?实时错误424?谢谢!!
搜索更多相关主题的帖子: 如何 
2017-01-24 16:35



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-473805-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.384370 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved