A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



GetRgnBox

The GetRgnBox function retrieves the bounding rectangle of the specified region.

VB4-32,5,6
Declare Function GetRgnBox Lib "gdi32" Alias "GetRgnBox" (ByVal hRgn As Long, lpRect As RECT) As Long

VB.NET
System.Drawing.Region

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- hrgn
Identifies the region.

- lprc
Points to a RECT structure that receives the bounding rectangle.

Return Values
The return value specifies the region’s complexity. It can be one of the following values:
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.

Last update: 07 April 2006