クライアント領域の表示長方形を取得します。
#Include <GuiTab.au3>
_GUICtrlTab_GetDisplayRect($hWnd)
パラメータ
| $hWnd | コントロールのハンドル | 
返し値
成功: 次のフォーマットの配列:
注意
この関数はタブページの内容を表すタブコントロール部分の座標をピクセル単位で取得するために使用できます。
関連
_GUICtrlTab_GetDisplayRectEx
例
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GuiTab.au3>
Opt('MustDeclareVars', 1)
$Debug_TAB = False ; 関数に渡されるClassNameを調べる。動作を確認するにはTrueを設定し、他のコントロールのハンドルを使用
_Main()
Func _Main()
    Local $aRect, $sRect, $hTab
    ; GUIを作成
    GUICreate("Tab Control Get Display Rect", 400, 300)
    $hTab = GUICtrlCreateTab(2, 2, 396, 296)
    GUISetState()
    ; タブを追加
    _GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
    _GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
    _GUICtrlTab_InsertItem($hTab, 2, "Tab 3")
    
    ; 表示長方形を取得
    $aRect = _GUICtrlTab_GetDisplayRect(GUICtrlGetHandle($hTab))
    $sRect = StringFormat("[%d, %d, %d, %d]", $aRect[0], $aRect[1], $aRect[2], $aRect[3])
    MsgBox(4160, "Information", "Display rectangle: " & $sRect)
    ; ユーザーが終了するまでループ
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main