Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.36 KB

GetBoundsRect.md

File metadata and controls

51 lines (36 loc) · 1.36 KB

Home

Function name : GetBoundsRect

Group: Painting and Drawing - Library: gdi32


The GetBoundsRect function obtains the current accumulated bounding rectangle for a specified device context. The system maintains an accumulated bounding rectangle for each application. An application can retrieve and set this rectangle.


Code examples:

Obtaining the bounding rectangle for the specified device context

Declaration:

UINT GetBoundsRect(
  HDC hdc,            // handle to device context
  LPRECT lprcBounds,  // bounding rectangle
  UINT flags          // function options
);  

FoxPro declaration:

DECLARE INTEGER GetBoundsRect IN gdi32;
	INTEGER   hdc,;
	STRING  @ lprcBounds,;
	INTEGER   flags  

Parameters:

hdc [in] Handle to the device context whose bounding rectangle the function will return.

lprcBounds [out] Pointer to the RECT structure that will receive the current bounding rectangle.

flags [in] Specifies how the GetBoundsRect function will behave.


Return value:

The return value specifies the state of the accumulated bounding rectangle; it can be one of the following values.