win32gui.IsChild

IsChild(hWndParent, hWnd)

Tests whether a window is a child window or descendant window of a specified parent window

Parameters

hWndParent : int

handle to parent window

hWnd : int

handle to window to test