CWindow::SetActiveWindow

窗口被激活。

HWND SetActiveWindow( ) throw();

备注

在参见 Windows SDK的 SetActiveWindow

示例

// The following example attaches a HWND to the CWindow object
// and sets the window as an active window by calling 
// CWindow::SetActiveWindow which returns the HWND of the
// previously active window.

CWindow myWindow;
myWindow.Attach(hWnd);   
HWND hWndPrev = myWindow.SetActiveWindow();

要求

Header: atlwin.h

请参见

参考

CWindow选件类