Share via


IsChild

This function tests 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( 
HWND hWndParent, 
HWND hWnd ); 

Parameters

  • hWndParent
    Handle to the parent window.
  • hWnd
    Handle to the window to be tested.

Return Values

Nonzero indicates that the window is a child or descendant window of the specified parent window. Zero indicates that the window is not a child or descendant window of the specified parent window.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

IsWindow, SetParent

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.