Private Declare Function clipcursor Lib "user32" (lprect As Any) As Long
Private Type RECT
left As Long
top As Long
right As Long
bottom As Long
End Type
Dim deng As RECT
Dim ss As Boolean
-----------------------
Private Sub Command1_Click()
If ss = True Then
deng.left = 0: deng.top = 0
deng.right = 0: deng.bottom = 0
clipcursor ByVal 0&: ss = False
Else
clipcursor ByVal 0&: ss = True
End If
End Sub
----------------------------
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
ss = True
Command1.Caption = "点击此处锁定鼠标"
Command2.Caption = "结束程序"
Form1.Caption = "锁定鼠标工具 by Erevus"
End Sub
我这源码有错的地方 谁能帮我改一下