다음을 통해 공유


CWindow::SetActiveWindow

창을 활성화합니다.

HWND SetActiveWindow( ) throw();

설명

참조 SetActiveWindow 에 있는 Windows SDK.

예제

// 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();

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스