Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_GetWindowRect

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the dimensions of the bounding rectangle of the specified window.

The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

 

Syntax

 

n = Win_GetWindowRect(hWnd, lRect)

 

Returns

 

Number.

If the function succeeds, the return value is nonzero.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the window

lRect

UDT

No

RECT structure variable that receives the screen coordinates of the upper-left and lower-right corners of the window.

 

Remarks

 

For additional info, please refer to MS documentation at: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getwindowrect

 

Restrictions

 

See also

 

Examples