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