다음을 통해 공유


CWindow::SetFocus

Sets the input focus to the window.

HWND SetFocus( ) throw();

Remarks

See SetFocus in the Windows SDK.

Example

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

Requirements

Header: atlwin.h

See Also

Concepts

CWindow Class

CWindow Members