
1个回答
展开全部
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 R As RECT
R.Left = Me.Left / Screen.TwipsPerPixelX
R.Top = Me.Left / Screen.TwipsPerPixelY
R.Right = R.Left + Me.Width / Screen.TwipsPerPixelX
R.Bottom = R.Top + Me.Height / Screen.TwipsPerPixelY
释放:
ClipCursor vbNull
private type RECT
left as long
top as long
right as long
bottom as long
end type
锁定:
Dim R As RECT
R.Left = Me.Left / Screen.TwipsPerPixelX
R.Top = Me.Left / Screen.TwipsPerPixelY
R.Right = R.Left + Me.Width / Screen.TwipsPerPixelX
R.Bottom = R.Top + Me.Height / Screen.TwipsPerPixelY
释放:
ClipCursor vbNull
更多追问追答
追问
说简单点
追答
这够简单了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询