HWND GetTopWindow(hwnd) | |||||
HWND hwnd; | /* handle of parent window | */ |
This function searches for a handle to the top-level child window that belongs to the parent window associated with the hwnd parameter. If the window has no children, this function returns NULL.
hwnd
Identifies the parent window.
If hwnd is NULL, GetTopWindow will return the first top-level window on the desktop (the desktop window's first child window).
The return value identifies a handle to the top-level child window in a parent window's linked list of child windows. If no child windows exist, it is NULL.
GetWindow, GetNextWindow