다음을 통해 공유


CWindow::SetFocus

창에 입력된 포커스를 설정합니다.

HWND SetFocus( ) throw();

설명

참조 SetFocus 에 있는 Windows SDK.

예제

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::SetFocus() to set the input focus

CWindow myWindow;
myWindow.Attach(hWnd);
HWND hWndLeftFocus = myWindow.SetFocus();

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스