指定されたウィンドウが属しているクラスの名前を取得します。
#Include <WinAPI.au3>
_WinAPI_GetClassName($hWnd)
パラメータ
$hWnd | ウィンドウのハンドル |
返し値
成功: | ウィンドウクラス名 |
失敗: | @errorを設定します。 |
注意
なし。
関連
こちらも参照
MSDNライブラリでGetClassNameを検索して下さい。
例
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
Opt('MustDeclareVars', 1)
#include <WinAPI.au3>
_Main()
Func _Main()
Local $hwnd
$hwnd = GUICreate("test")
MsgBox(4096, "Get ClassName", "ClassName of " & $hwnd & ": " & _WinAPI_GetClassName($hwnd))
EndFunc ;==>_Main