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

# CreateRoundRectRgn(3w)

## NAME

**CreateRoundRectRgn** (GDI32.@)

## SYNOPSIS

HRGN CreateRoundRectRgn\
  (\
   INT *left*,\
   INT *top*,\
   INT *right*,\
   INT *bottom*,\
   INT *ellipse\_width*,\
   INT *ellipse\_height*\
  )

## DESCRIPTION

Creates a rectangular region with rounded corners.

## 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.

*ellipse\_width* **\[In\]**  Width of the ellipse at each corner.

*ellipse\_height* **\[In\]**  Height of the ellipse at each corner.

## RETURNS

**Success:** Handle to region.

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

## NOTES

If *ellipse\_width* or *ellipse\_height* is less than **2** logical units then it is treated as though **[CreateRectRgn(3w)](/CreateRectRgn/3w.md)** was called instead.

## IMPLEMENTATION

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

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

Debug channel **"region"**.
