---
name: "GetRgnBox"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetRgnBox"
---

# GetRgnBox(3w)

## NAME

**GetRgnBox** (GDI32.@)

## SYNOPSIS

INT GetRgnBox\
  (\
   HRGN   *hrgn*,\
   LPRECT *rect*\
  )

## DESCRIPTION

Retrieves the bounding rectangle of the region. The bounding rectangle is the smallest rectangle that contains the entire region.

## PARAMS

*hrgn* **\[In\]**  Region to retrieve bounding rectangle from.

*rect* **\[Out\]**  Rectangle that will receive the coordinates of the bounding rectangle.

## RETURNS

**NULLREGION** **-** The new region is empty. **SIMPLEREGION** **-** The new region can be represented by one rectangle. **COMPLEXREGION** **-** The new region can only be represented by more than one rectangle.

## IMPLEMENTATION

Declared in **"wingdi.h"**.

Implemented in **"dlls/gdi32/region.c"**.

Debug channel **"region"**.
