Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.12 KB

GetClientRect.md

File metadata and controls

47 lines (33 loc) · 1.12 KB

Home

Function name : GetClientRect

Group: Window - Library: user32


Retrieves the coordinates of a window"s client area.


Code examples:

Comparing dimensions of the VFP main window with _SCREEN properties
Retrieving geometrical parameters of the system desktop window

Declaration:

BOOL GetClientRect(
  HWND hWnd,      // handle to window
  LPRECT lpRect   // client coordinates
);  

FoxPro declaration:

DECLARE SHORT GetClientRect IN user32;
	INTEGER  hwnd,;
	STRING @ lpRect  

Parameters:

hWnd [in] Handle to the window whose client coordinates are to be retrieved.

lpRect [out] Pointer to a RECT structure that receives the client coordinates. The left and top members are zero. The right and bottom members contain the width and height of the window.


Return value:

If the function succeeds, the return value is nonzero.