Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 2.72 KB

GetWindowRect.md

File metadata and controls

72 lines (53 loc) · 2.72 KB

Home

Function name : GetWindowRect

Group: Window - Library: user32


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


Code examples:

Listing child windows for the Windows desktop
Scanning a hierarchy of child windows down from the Windows Desktop
Comparing dimensions of the VFP main window with _SCREEN properties
GetFocus returns a HWND value
How to copy the image of a form to the Clipboard using Bitmap API functions
Retrieving geometrical parameters of the system desktop window
How to create transparent areas inside a form -- punching holes in the form
An alternative way of setting Form.Closable to False
How to print FoxPro form
Storing screen shot of a form to bitmap file
Retrieving top-child window for the VFP form
Storing screen shot of a form to enhanced metafile (*.emf)
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to print FoxPro form -- II
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
GDI+: sending image of FoxPro form to printer
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
How to make a VFP form fading out when released (GDI+ version)
How to make a VFP form fading out when released (GDI version)

Declaration:

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

FoxPro declaration:

DECLARE INTEGER GetWindowRect IN user32;
	INTEGER hWindow,;
	STRING @lpRect  

Parameters:

hWnd [in] Handle to the window.

lpRect [out] Pointer to a RECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See also: GetClientRect, ScreenToClient, SetWindowPos.