HWND GetParent(hWnd)
This function retrieves the window handle of the specified window's parent window
(if any).
Parameter | Type/Description |
hWnd | HWND Identifies the window whose parent window handle is to be retrieved. |
The return value identifies the parent window. It is NULL if the window has no parent window.