3个回答
展开全部
嗯~
楼上回答很好!
楼上回答很好!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SetCapture Lib "user32" (ByVal hwnd As Long) As Long
Private Sub PictureI1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
IF X>=0 And X<=Picture1.Width And Y>=0 And Y<=Picture1.Height Then
Picture1.MousePointer=2
SetCapture Picture1.Hwnd
Else
Picture1.MousePointer=0
ReleaseCapture
End IF
End Sub
Private Declare Function SetCapture Lib "user32" (ByVal hwnd As Long) As Long
Private Sub PictureI1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
IF X>=0 And X<=Picture1.Width And Y>=0 And Y<=Picture1.Height Then
Picture1.MousePointer=2
SetCapture Picture1.Hwnd
Else
Picture1.MousePointer=0
ReleaseCapture
End IF
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询