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.
BOOL EqualRgn(
HRGN hSrcRgn1, // handle to first region
HRGN hSrcRgn2 // handle to second region
);
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.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Regions Overview, Region Functions, CreateRectRgn, CreateRectRgnIndirect