Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 949 Bytes

GetAncestor.md

File metadata and controls

46 lines (32 loc) · 949 Bytes

Home

Function name : GetAncestor

Group: Window - Library: user32


The GetAncestor function retrieves the handle to the ancestor of the specified window.


Code examples:

The window and its ancestors

Declaration:

HWND GetAncestor(
  HWND hwnd,    // handle to window
  UINT gaFlags  // ancestor
);  

FoxPro declaration:

DECLARE INTEGER GetAncestor IN user32;
	INTEGER hwnd,;
	INTEGER gaFlags  

Parameters:

hwnd [in] Handle to the window whose ancestor is to be retrieved. If this parameter is the desktop window, the function returns NULL.

gaFlags [in] Specifies the ancestor to be retrieved.


Return value:

The return value is the handle to the ancestor window.