-
How to call the api clipcursor to fix mouse in the region?
hi,I want to call the api function clipcursor to fix mouse in the region on a picturebox. But it has no effction. I don't know why it is.My code is following:
Private Type RECT
left As Long
top As Long
right As Long
bottom As Long
End Type
Private Declare Function ClipCursor Lib "user32" (lpRect As RECT) As Long
Dim D As RECT
Private Sub Form_Load()
Picture1.Scale (-10, 10)-(10, -10)
D.left = -8: D.top = 8: D.right = 8: D.bottom = -8
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
dim t as long
t = ClipCursor(D)
End Sub
Please give me guide about it. Thanks a lot.
xuliangchu
Similar Threads
-
By Spurvey in forum VB Classic
Replies: 1
Last Post: 04-24-2005, 02:53 AM
-
By Flavio Hualpa in forum VB Classic
Replies: 0
Last Post: 02-27-2002, 07:11 PM
-
By Nikki in forum authorevents.mitchell
Replies: 1
Last Post: 10-18-2000, 05:03 PM
-
By BIG T in forum VB Classic
Replies: 16
Last Post: 05-13-2000, 12:40 AM
-
By Mike in forum VB Classic
Replies: 2
Last Post: 04-24-2000, 03:30 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|