Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether a window is a child window or descendant window of a specified parent window. A child window is the direct descendant of a specified parent window if that parent window is in the chain of parent windows; the chain of parent windows leads from the original overlapped or pop-up window to the child window.
BOOL IsChild(
[in] HWND hWndParent,
[in] HWND hWnd
);
[in] hWndParent
Type: HWND
A handle to the parent window.
[in] hWnd
Type: HWND
A handle to the window to be tested.
Type: BOOL
If the window is a child or descendant window of the specified parent window, the return value is nonzero.
If the window is not a child or descendant window of the specified parent window, the return value is zero.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | winuser.h (include Windows.h) |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-ntuser-window-l1-1-0 (introduced in Windows 8) |
Conceptual
Reference
Please sign in to use this experience.
Sign in