GetClientSize Command

Requires: Gfawinx.lg32

Purpose

Retrieves the width and height (in pixels) of a window's client area.

Syntax

GetClientSize hWnd, width, height

hWnd: Window handle
height, width: integer variables

Description

GetClientSize is a simple wrapper for the API GetClientRect(). This API, however, retrieves the four coordinates of a window's client area whereas GetClientSize retrieves the client areas width and height.

Example

OpenW 1

Dim width%, height%

GetClientSize Win_1.hWnd, width%, height%

Debug.Show

Trace width%

Trace height%

See Also

_X, _Y, WindGet, GetWinPos.

{Created by Sjouke Hamstra; Last updated: 09/05/2020 by James Gaite}