怎么获得鼠标单击时在窗体里的坐标位置?
有没有内置的函数或方法?还是一定要用到API?
2007-09-22 22:45
没有控件阻挡……可以:
Option Explicit
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Cls
Print X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY
End Sub
要是有控件……
没有内置……必须API

2007-09-23 08:56
2007-09-23 08:58
2007-09-23 09:04
2007-09-23 09:05
2007-09-23 09:16
2007-09-23 09:20
2007-09-23 09:22
2007-09-23 09:23
2007-09-23 09:26