1个回答
展开全部
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_LBUTTONDOWN = &H201
Private Const MK_LBUTTON = &H1
Private Sub Command1_Click()
PostMessage Me.hwnd, WM_LBUTTONDOWN, MK_LBUTTON, 10 * 65536 + 10
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Circle (X, Y), 50, vbRed '画个圆标记一下点击的点
End Sub
Private Const WM_LBUTTONDOWN = &H201
Private Const MK_LBUTTON = &H1
Private Sub Command1_Click()
PostMessage Me.hwnd, WM_LBUTTONDOWN, MK_LBUTTON, 10 * 65536 + 10
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Circle (X, Y), 50, vbRed '画个圆标记一下点击的点
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询