GetRgnBox
This function retrieves the bounding rectangle of the specified region.
int GetRgnBox(
HRGN hrgn,
LPRECT lprc
);
Parameters
- hrgn
[in] Handle to the region. - lprc
[out] Long pointer to a RECT structure that receives the bounding rectangle.
Return Values
The return value specifies the regions complexity. NULLREGION indicates that the region is empty. SIMPLEREGION indicates that the region is a single rectangle. COMPLEXREGION indicates that the region is more than a single rectangle. Zero indicates that the hrgn parameter does not identify a valid region
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Wingdi.h | Mgrgn.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.