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

# SetRectRgn(3w)

## NAME

**SetRectRgn** (GDI32.@)

## SYNOPSIS

BOOL SetRectRgn\
  (\
   HRGN *hrgn*,\
   INT  *left*,\
   INT  *top*,\
   INT  *right*,\
   INT  *bottom*\
  )

## DESCRIPTION

Sets a region to a simple rectangular region.

## PARAMS

*hrgn* **\[In\]**  Region to convert.

*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:** Non-zero.

**Failure:** Zero.

## NOTES

Allows either or both *left* and *top* to be greater than *right* or *bottom*.

## IMPLEMENTATION

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

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

Debug channel **"region"**.
