GetLastActivePopup

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
);  

Parameters

hWnd

Identifies the owner window.

Return Values

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:

·The window identified by hWnd was most recently active.

·The window identified by hWnd does not own any pop-up windows.

·The window identified by hWnd is not a top-level window or it is owned by another window.

See Also

AnyPopup, ShowOwnedPopups