GetLastActivePopup

  HWND GetLastActivePopup(hwnd)    
  HWND hwnd; /* handle of owner window */

This function determines which pop-up window owned by the window identified by the hwnd parameter was most recently active.

Parameters

hwnd

Identifies the owner window.

Return Value

The return value identifies the most-recently active pop-up window. The return value will be hwnd if any of the following conditions are met:

The window identified by hwnd itself 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 is owned by another window.

See Also

ShowOwnedPopups, AnyPopup