共用方式為


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 類別