Hej Private Type POINTAPIfå muspekar-koordinater över formulär
Ngn som vet ngt sätt att få muskoordinaterna när man är med pekaren över ett formulär (vb formulär). Ngt Windows api eller annan funktion?
MVH
AxelSv: få muspekar-koordinater över formulär
X As Long
Y As Long
End Type
'- Find the mousepointers current location on the screen
Private Declare Function GetCursorPos Lib "USER32" (lpPoint As POINTAPI) As Long
'- Get the hWnd of the form / control that is below the point (xPoint, yPoint)
Private Declare Function WindowFromPoint Lib "USER32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
resten får du klura ut själv...