User32ChildWindowFromPointEx(IntPtr, NativePoint, WindowSkipOptions) Method

Determines which, if any, of the child windows belonging to the specified parent window contains the specified point.

The function can ignore invisible, disabled, and transparent child windows.

The search is restricted to immediate child windows. Grandchildren and deeper descendants are not searched.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static IntPtr ChildWindowFromPointEx(
	IntPtr hwndParent,
	NativePoint pt,
	WindowSkipOptions flags
)

Parameters

hwndParent  IntPtr
A handle to the parent window.
pt  NativePoint
A structure that defines the client coordinates (relative to hwndParent) of the point to be checked.
flags  WindowSkipOptions
The child windows to be skipped.

Return Value

IntPtr
The return value is a handle to the first child window that contains the point and meets the criteria specified by flags.

If the point is within the parent window but not within any child window that meets the criteria, the return value is a handle to the parent window.

If the point lies outside the parent window or if the function fails, the return value is Zero.

Remarks

See Also