IsChild

2.x

  BOOL IsChild(hwndParent, hwndChild)    
  HWND hwndParent; /* handle of parent window */
  HWND hwndChild; /* handle of child window */

The IsChild function tests whether a given window is a child or other direct descendant of a given parent window. A child window is the direct descendant of a given parent window if that parent window is in the chain of parent windows leading from the original pop-up window to the child window.

Parameters

hwndParent

Identifies the parent window.

hwndChild

Identifies the child window to be tested.

Return Value

The return value is nonzero if the child window is a descendant of the parent window. Otherwise, it is zero.

See Also

SetParent