Freigeben über


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

Reference

CWindow Class

Other Resources

CWindow Members