打错了,::GetLastActivePopup GetLastActivePopup Function--------------------------------------------------------------------------------The GetLastActivePopup function determines which pop-up window owned by the specified window was most recently active. SyntaxHWND GetLastActivePopup( HWND hWnd ); ParametershWnd [in] Handle to the owner window. Return ValueThe 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.
CFrameWnd 没有 GetActivePopup()这个函数
GetLastActivePopup Function--------------------------------------------------------------------------------The GetLastActivePopup function determines which pop-up window owned by the specified window was most recently active. SyntaxHWND GetLastActivePopup( HWND hWnd
);
ParametershWnd
[in] Handle to the owner window.
Return ValueThe 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.
然后再判断其m_hWnd,这样可不可以?