PyCWnd.GetTopLevelParent

PyCWnd = GetTopLevelParent()

Returns the top-level parent of the window.

MFC References

CWnd::GetTopLevelParent

Return Value

The result is a PyCWnd object, or None if no Window can be found.