Determines which pop-up window owned by the specified window was most recently active.
HWND GetLastActivePopup( HWND hWnd );
A handle to the 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:
- The window identified by hWnd was most recently active.
- The window identified by hWnd does not own any pop-up windows.
- The window identifies by hWnd is not a top-level window, or it is owned by another window.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||winuser.h (include Windows.h)|