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

# CreateRectRgn(3w)

## NAME

**CreateRectRgn** (GDI32.@)

## SYNOPSIS

HRGN CreateRectRgn\
  (\
   INT *left*,\
   INT *top*,\
   INT *right*,\
   INT *bottom*\
  )

## DESCRIPTION

Creates a simple rectangular region.

## PARAMS

*left* **\[In\]**  Left coordinate of rectangle.

*top* **\[In\]**  Top coordinate of rectangle.

*right* **\[In\]**  Right coordinate of rectangle.

*bottom* **\[In\]**  Bottom coordinate of rectangle.

## RETURNS

**Success:** Handle to region.

**Failure:** **NULL**.

## IMPLEMENTATION

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

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

Debug channel **"region"**.
