GetRgnBox function
Applies to: desktop apps only
The GetRgnBox function retrieves the bounding rectangle of the specified region.
Syntax
int GetRgnBox( __in HRGN hrgn, __out LPRECT lprc );
Parameters
- hrgn [in]
-
A handle to the region.
- lprc [out]
-
A pointer to a RECT structure that receives the bounding rectangle in logical units.
Return value
The return value specifies the region's complexity. It can be one of the following values:
| Value | Meaning |
|---|---|
| NULLREGION | Region is empty. |
| SIMPLEREGION | Region is a single rectangle. |
| COMPLEXREGION | Region is more than a single rectangle. |
If the hrgn parameter does not identify a valid region, the return value is zero.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012