Expand Minimize

GetLastActivePopup function

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

Syntax


HWND WINAPI GetLastActivePopup(
  _In_  HWND hWnd
);

Parameters

hWnd [in]

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]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
AnyPopup
ShowOwnedPopups
Conceptual
Windows

 

 

Community Additions

ADD
Show:
© 2014 Microsoft