CWindow::SetFocus
Sets the input focus to the window.
HWND SetFocus( ) throw();
Заметки
See SetFocus in the 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();
Требования
Header: atlwin.h