指定のウィンドウをアクティブ化
Declare Function SetFocusAPI Lib "user32.dll" _
(ByVal hWnd As Long) As Long
Declare Function SetFocusAPI Lib "user32.dll" _
(ByVal hWnd As Integer) As Integer
HWND SetFocus(
HWND hWnd
);
引数
hWnd
ウィンドウのハンドル戻り値
正常終了のとき 直前までフォーカスがあったウィンドウハンドル備考
エラーのとき 0
Visual BasicのSetFocusと名前が同じなので宣言文では変更している