Partager via


GetParent

This function retrieves the handle to the specified child window's parent window.

HWND GetParent( 
  HWND hWnd 
); 

Parameters

  • hWnd
    [in] Handle to the window whose parent window handle is to be retrieved.

Return Values

A handle to the parent window indicates success. NULL indicates that the window has no parent window. To get extended error information, call GetLastError.

Remarks

Windows CE version 1.0 does not support owned windows, except for dialog boxes.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

SetParent | Windows Functions

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.