Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 980 Bytes

GetRgnBox.md

File metadata and controls

53 lines (38 loc) · 980 Bytes

Home

Function name : GetRgnBox

Group: Region - Library: gdi32


Retrieves the bounding rectangle of the specified region.


Code examples:

Finding parameters for the region specified

Declaration:

int GetRgnBox(
  HRGN hrgn,   // handle to a region
  LPRECT lprc  // bounding rectangle
);  

FoxPro declaration:

DECLARE INTEGER GetRgnBox IN gdi32;
	INTEGER hrgn,;
	STRING @ lprc  

Parameters:

hrgn [in] Handle to the region.

lprc [out] Pointer to a RECT structure that receives the bounding rectangle in logical units.


Return value:

The return value specifies the region"s complexity:

#DEFINE NULLREGION     1
#DEFINE SIMPLEREGION   2
#DEFINE COMPLEXREGION  3
#DEFINE RGN_ERROR      0