Function Reference


_WinAPI_GetClientWidth

Retrieves the width of a window's client area

#include <WinAPISysWin.au3>
_WinAPI_GetClientWidth ( $hWnd )

Parameters

$hWnd Handle of window

Return Value

Success: the client area width.
Failure: sets the @error flag to non-zero.

Related

_WinAPI_GetClientHeight

Example

#include <MsgBoxConstants.au3>
#include <WinAPISysWin.au3>

Example()

Func Example()
        Local $hWnd
        $hWnd = GUICreate("test")
        MsgBox($MB_SYSTEMMODAL, "Client", "Client Width: " & _WinAPI_GetClientWidth($hWnd))
EndFunc   ;==>Example