次の方法で共有


CWindow::SetFocus

更新 : 2007 年 11 月

入力フォーカスをウィンドウに設定します。

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

必要条件

ヘッダー : atlwin.h

参照

参照

CWindow クラス

その他の技術情報

CWindow のメンバ