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

# PtInRegion(3w)

## NAME

**PtInRegion** (GDI32.@)

## SYNOPSIS

BOOL PtInRegion\
  (\
   HRGN *hrgn*,\
   INT  *x*,\
   INT  *y*\
  )

## DESCRIPTION

Tests whether the specified point is inside a region.

## PARAMS

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

*x* **\[In\]**  X-coordinate of point to test.

*y* **\[In\]**  Y-coordinate of point to test.

## RETURNS

Non-zero if the point is inside the region or zero otherwise.

## IMPLEMENTATION

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

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

Debug channel **"region"**.
