Important: The information in this document is obsolete and should not be used for new development.
EmptyRgn
To determine whether a region is empty, use theEmptyRgnfunction.
FUNCTION EmptyRgn (rgn:\xDDRgnHandle):\xDDBoolean;
rgn- A handle to the region to test for emptiness.
DESCRIPTION
TheEmptyRgnfunction returnsTRUEif the region whose handle you pass in thergnparameter is an empty region orFALSEif it is not.SEE ALSO
TheEmptyRgnfunction does not create an empty region. To create an empty region, you can perform any of the following operations:
- use the
NewRgnfunction (described on page 3-83)- pass the handle to an empty region to the
CopyRgnprocedure (described on page 3-86)- pass an empty rectangle to either the
SetRectRgnprocedure (described on page 3-87) or theRectRgnprocedure (described on page 3-88)- call the
CloseRgnprocedure (described on page 3-85) without a previous call to theOpenRgnprocedure- call
CloseRgnwithout performing any drawing after callingOpenRgn- pass an empty region to the
OffsetRgnprocedure (described on page 3-89)- pass an empty region or too large an inset to the
InsetRgnprocedure (described on page 3-89)- pass two nonintersecting regions to the
SectRgnprocedure (described on page 3-90)- pass two empty regions to the
UnionRgnprocedure (described on page 3-91)- pass two identical or nonintersecting regions to the
DiffRgn(described on page 3-92) orXorRgn(described on page 3-92) procedure