User32ChildWindowFromPointEx(IntPtr, Point, 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.
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", ExactSpelling = true)]
public static IntPtr ChildWindowFromPointEx(
IntPtr hwndParent,
Point pt,
WindowSkipOptions flags
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function ChildWindowFromPointEx (
hwndParent As IntPtr,
pt As Point,
flags As WindowSkipOptions
) As IntPtr
Dim hwndParent As IntPtr
Dim pt As Point
Dim flags As WindowSkipOptions
Dim returnValue As IntPtr
returnValue = User32.ChildWindowFromPointEx(hwndParent,
pt, flags)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr ChildWindowFromPointEx(
IntPtr hwndParent,
Point pt,
WindowSkipOptions flags
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member ChildWindowFromPointEx :
hwndParent : IntPtr *
pt : Point *
flags : WindowSkipOptions -> IntPtr
No code example is currently available or this language may not be supported.
- hwndParent IntPtr
-
A handle to the parent window.
- pt Point
-
A structure that defines the client coordinates (relative to hwndParent) of the point to be checked.
- flags WindowSkipOptions
-
The child windows to be skipped.
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.