CRgn Methods

Construction Methods

Method Description
CRgn Constructs a CRgn object.

Initialization

Method Description
CreateRectRgn Initializes a CRgn object with a rectangular region.
CreateRectRgnIndirect Initializes a CRgn object with a rectangular region defined by a RECT structure.
CombineRgn Sets a CRgn object so that it is equivalent to the union of two specified CRgn objects.
CopyRgn Sets a CRgn object so that it is a copy of a specified CRgn object.

Operations Methods

Method Description
EqualRgn Checks two CRgn objects to determine whether they are equivalent.
FromHandle Returns a pointer to a CRgn object when specified a handle to a Windows region.
GetRegionData Fills the specified buffer with data describing the specified region.
GetRgnBox Retrieves the coordinates of the bounding rectangle of a CRgn object.
OffsetRgn Moves a CRgn object by the specified offsets.
PtInRegion Determines whether a specified point is in the region.
RectInRegion Determines whether any part of a specified rectangle is within the boundaries of the region.
SetRectRgn Sets the CRgn object to the specified rectangular region.