int GetRgnBox(hRgn,lpRect)
This function retrieves the coordinates of the bounding rectangle of the region specified by the hRgn parameter.
| Parameter | Type/Description |
| hRgn | HRGN Identifies the region. | |
| lpRect | LPRECT Points to a RECT data structure to receive the coordinates of the bounding rectangle. |
The return value specifies the region's type. It can be any of the following values.
| Value | Meaning |
| COMPLEXREGION | Region has overlapping borders. | |
| NULLREGION | Region is empty. | |
| SIMPLEREGION | Region has no overlapping borders. |
The return value is NULL if the hRgn parameter does not specify a valid region.