Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

IsChild function

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.

Syntax


BOOL WINAPI IsChild(
  _In_ HWND hWndParent,
  _In_ HWND hWnd
);

Parameters

hWndParent [in]

Type: HWND

A handle to the parent window.

hWnd [in]

Type: HWND

A handle to the window to be tested.

Return value

Type:

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
IsWindow
SetParent
Conceptual
Windows

 

 

Community Additions

ADD
Show:
© 2015 Microsoft