CRgn::EqualRgn

BOOL EqualRgn( CRgn* pRgn ) const;

Return Value

Nonzero if the two regions are equivalent; otherwise 0.

Parameters

pRgn

Identifies a region.

Remarks

Determines whether the given region is equivalent to the region stored in the CRgn object.

Example

CRgn   rgnA, rgnB;

VERIFY(rgnA.CreateEllipticRgn(200, 100, 350, 250));
VERIFY(rgnB.CreateRectRgn( 0, 0, 50, 50 ));
VERIFY(rgnB.CopyRgn( &rgnA ));
int nOffsetResult = rgnB.OffsetRgn( -75, 75 );
ASSERT( nOffsetResult != ERROR || nOffsetResult != NULLREGION );
ASSERT( FALSE == rgnB.EqualRgn( &rgnA ) );

CRgn OverviewClass MembersHierarchy Chart

See Also   ::EqualRgn