Retrieves a handle to the specified window's parent or owner.
To retrieve a handle to a specified ancestor, use the GetAncestor function.
Syntax
C++
HWND WINAPI GetParent( _In_ HWND hWnd );
Parameters
-
hWnd [in]
-
Type: HWND
A handle to the window whose parent window handle is to be retrieved.
Return value
Type: