通过过程Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)End Sub获得鼠标的横坐标x,纵坐标y.实际坐标为480,960时,x的值只有32,y的值只有64。请问是怎么回事.
这个是窗口的值```而不是鼠標再SCREEN的坐標值``
要得到鼠标的位置要用这个API
GetCursorPos
同时要定义一个POINTAPI类型
Private Type POINTAPI X As Long Y As LongEnd Type