IsChild(hWndParent, hWnd)
Tests whether a window is a child window or descendant window of a specified parent window