Upravit

Sdílet prostřednictvím


GetLastActivePopup function (winuser.h)

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

Syntax

HWND GetLastActivePopup(
  [in] HWND hWnd
);

Parameters

[in] hWnd

Type: HWND

A handle to the owner window.

Return value

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

Requirement Value
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
API set ext-ms-win-ntuser-window-l1-1-3 (introduced in Windows 10, version 10.0.10240)

See also

AnyPopup

Conceptual

Reference

ShowOwnedPopups

Windows