User32WindowFromPoint(Point) Method
Retrieves a handle to the window that contains the specified point.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static IntPtr WindowFromPoint(
Point pt
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function WindowFromPoint (
pt As Point
) As IntPtr
Dim pt As Point
Dim returnValue As IntPtr
returnValue = User32.WindowFromPoint(pt)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static IntPtr WindowFromPoint(
Point pt
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member WindowFromPoint :
pt : Point -> IntPtr
No code example is currently available or this language may not be supported.
- pt Point
-
The point to be checked.
IntPtr
The return value is a handle to the window that contains the point.
If no window exists at the given point, the return value is
Zero.
If the point is over a static text control, the return value is a handle to the window under the static text control.