HWND GetTopWindow(hWnd)
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.
Parameter | Type/Description |
hWnd | HWND Identifies the parent 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.