GetLastActivePopup function

Determines which pop-up window owned by the specified window was most recently active.

Syntax

HWND GetLastActivePopup(
  HWND hWnd
);

Parameters

hWnd

Type: HWND

A handle to the owner window.

Return Value

Type: Type: HWND

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.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

AnyPopup

Conceptual

Reference

ShowOwnedPopups

Windows