EqualRgn function (wingdi.h)

The EqualRgn function checks the two specified regions to determine whether they are identical. The function considers two regions identical if they are equal in size and shape.

Syntax

BOOL EqualRgn(
  [in] HRGN hrgn1,
  [in] HRGN hrgn2
);

Parameters

[in] hrgn1

Handle to a region.

[in] hrgn2

Handle to a region.

Return value

If the two regions are equal, the return value is nonzero.

If the two regions are not equal, the return value is zero. A return value of ERROR means at least one of the region handles is invalid.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

CreateRectRgn

CreateRectRgnIndirect

Region Functions

Regions Overview