win32gui.GetAncestor

int = GetAncestor(hWnd, gaFlags )

retrieves the handle to the ancestor of the specified window.

Parameters

hWnd : int

handle to original window

gaFlags : int

ancestor to be retrieved