HWND GetTopWindow(hwnd) | |||||
HWND hwnd; | /* handle of parent window | */ |
The GetTopWindow function retrieves the handle of the top-level child window that belongs to the given parent window. If the parent window has no child windows, this function returns NULL.
hwnd
Identifies the parent window. If this parameter is NULL, the function returns the first child window of the desktop window.
The return value is the handle of the top-level child window in a parent window's linked list of child windows. The return value is NULL if no child windows exist.