 |
GetParent ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetParent function retrieves a handle to the specified window"s parent or owner. To retrieve a handle to a specified ancestor, use the GetAncestor function. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HWND GetParent(
HWND hWnd // handle to child window
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetParent IN user32;
INTEGER hwnd
|
 |
 |
 |
| Parameters: |
 |
hWnd
[in] Handle to the window whose parent window handle is to be retrieved. |
 |
 |
| Return value: |
 |
| If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL. |
 |
 |
| Word Index links for the GetParent : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-01-25 20:58:30 | | Modified: | 2002-01-25 20:59:59 | Visited in last 7 days: 27 |