win32gui.GetWindow

int = GetWindow(hWnd, uCmd )

returns a window that has the specified relationship (Z order or owner) to the specified window.

Parameters

hWnd : int

handle to original window

uCmd : int

relationship flag