Function Reference

_WinAPI_GetClientRect

ウィンドウのクライント領域の座標を取得します。

#Include <WinAPI.au3>
_WinAPI_GetClientRect($hWnd)

 

パラメータ

$hWnd ウィンドウのハンドル

 

返し値

成功: クライアント座標を受け取る$tagRECT構造体
失敗: @errorを設定します。

 

注意

なし。

 

関連

$tagRECT

 

こちらも参照

MSDNライブラリでGetClientRectを検索して下さい。

 


#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, $tRect
    $hwnd = GUICreate("test")
    $tRect = _WinAPI_GetClientRect($hwnd)
    MsgBox(4096, "Rect", _
            "Left..: " & DllStructGetData($tRect, "Left") & @CRLF & _
            "Right.: " & DllStructGetData($tRect, "Right") & @CRLF & _
            "Top...: " & DllStructGetData($tRect, "Top") & @CRLF & _
            "Bottom: " & DllStructGetData($tRect, "Bottom"))
EndFunc   ;==>_Main