Requires: Gfawinx.lg32
Retrieves the width and height (in pixels) of a window's client area.
GetClientSize hWnd, width, height
hWnd | : Window handle |
height, width | : integer variables |
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.
OpenW 1
Dim width%, height%
GetClientSize Win_1.hWnd, width%, height%
Debug.Show
Trace width%
Trace height%
{Created by Sjouke Hamstra; Last updated: 09/05/2020 by James Gaite}