January 1, 2005

WinTask - GetWindowFromPoint

'
' WindowFromPoint
'
' Author: Joe Strazzere
'

'"user32" Alias "WindowFromPoint"
' (ByVal xPoint As Long,
'  ByVal yPoint As Long) As Long
'
hwnd = External("user32","WindowFromPoint", 100, 100)
msgbox("Handle = "+Str$(hwnd),,"WindowFromPoint")
msgbox(GetWindowName$(hwnd),,"WindowFromPoint")