GetLastActivePopup---获取某个窗口所拥有的所有窗口中的活跃窗口的句柄

来源:互联网 发布:会员数据分析报告 编辑:程序博客网 时间:2024/06/07 17:19
 

GetLastActivePopup Function


The GetLastActivePopup function determines which pop-up window owned by the specified window was most recently active.

Syntax

HWND GetLastActivePopup(      

    HWND hWnd
);

Parameters

hWnd
[in] Handle to the owner window.

Return Value

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.