HWND GetLastActivePopup(hwndOwner)
This function determines which pop-up window owned by the window identified by the hwndOwner parameter was most recently active.
Parameter | Type/Description | |
hwndOwner | HWND Identifies the owner window. |
The return value identifies the most-recently active pop-up window. The return value will be hwndOwner if any of the following conditions are met:
The window identified by hwndOwner itself was most recently active.
The window identified by hwndOwner does not own any pop-up windows.
The window identified by hwndOwner is not a top-level window or is owned by another window.