GetParent

  HWND GetParent(hwnd)    
  HWND hwnd; /* handle of window */

This function retrieves the window handle of the specified window's parent window (if any).

Parameters

hwnd

Identifies the window whose parent window handle is to be retrieved.

Return Value

The return value identifies the parent window. It is NULL if the window has no parent window.

See Also

SetParent