The GetLastActivePopup function determines which pop-up window owned by the specified window was most recently active.
HWND GetLastActivePopup(
HWND hWnd |
// handle of owner window |
); |
The return value identifies the most recently active pop-up window. The return value is the same as the hWnd parameter, if any of the following conditions are met: