[DllImport("user32.dll")]
static extern IntPtr WindowFromPoint(POINT Point);
The WindowFromPoint function retrieves a handle to the window that contains the specified point.
Please add some!
Please add some!
Do you know one? Please contribute it!
Imports System.Runtime.InteropServices
Module test
<DllImport("user32.dll")> _
Function WindowFromPoint(ByVal xPoint As Long, _
ByVal yPoint As Long) As Long
End Function
end module
xPoint, yPoint
The WindowFromPoint function retrieves a handle to the window that contains the specified point.
Please add some!
Dim tPA As Point
Dim lhWnd As Long
tPA = Cursor.Position
x = tPA.X
y = tPA.Y
' Get window handle from point
lhWnd = WindowFromPoint(x, y)
Do you know one? Please contribute it!