GetParent

2.x

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

The GetParent function retrieves the handle of the given window's parent window (if any).

Parameters

hwnd

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

Return Value

The return value is the handle of the parent window if the function is successful. Otherwise, it is NULL, indicating an error or no parent window.

See Also

SetParent