展开全部
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
Private Sub Form_Load()
Dim r As RECT
x = (Me.Width - Me.ScaleWidth) / 2
r.Left = (Me.Left + x) / 15
r.Top = (Me.Top + Me.Height - Me.ScaleHeight - x) / 15
r.Right = (Me.Left + Me.Width - x) / 15
r.Bottom = (Me.Top + Me.Height - x) / 15
ClipCursor r
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询