指定されたコントロールの識別子を返します。
#Include <WinAPI.au3>
_WinAPI_GetDlgCtrlID($hWnd)
パラメータ
$hWnd | コントロールのハンドル |
返し値
成功: | コントロールの識別子 |
失敗: | 0 |
注意
GetDlgCtrlIDはダイアログボックス内のコントロールのハンドルだけでなく子ウィンドウのハンドルを受け付けます。
関連
こちらも参照
MSDNライブラリでGetDlgCtrlIDを検索して下さい。
例
#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 $button
GUICreate("test")
$button = GUICtrlCreateButton("testing", 0, 0)
MsgBox(4096, "ID", "Dialog Control ID: " & _WinAPI_GetDlgCtrlID(GUICtrlGetHandle($button)))
EndFunc ;==>_Main