CWindow::SetFocus

输入焦点设置到窗口。

HWND SetFocus( ) throw();

备注

在参见 Windows SDK的 SetFocus

示例

//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

请参见

参考

CWindow选件类