CRgn Class
Encapsulates a Windows graphics device interface (GDI) region.
class CRgn : public CGdiObject
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CRgn object. |
Public Methods
Name |
Description |
---|---|
Sets a CRgn object so that it is equivalent to the union of two specified CRgn objects. |
|
Sets a CRgn object so that it is a copy of a specified CRgn object. |
|
Initializes a CRgn object with an elliptical region. |
|
Initializes a CRgn object with an elliptical region defined by a RECT structure. |
|
Creates a region from the given region and transformation data. |
|
Creates a region from the path that is selected into the given device context. |
|
Initializes a CRgn object with a polygonal region. The system closes the polygon automatically, if necessary, by drawing a line from the last vertex to the first. |
|
Initializes a CRgn object with a region consisting of a series of closed polygons. The polygons may be disjoint, or they may overlap. |
|
Initializes a CRgn object with a rectangular region. |
|
Initializes a CRgn object with a rectangular region defined by a RECT structure. |
|
Initializes a CRgn object with a rectangular region with rounded corners. |
|
Checks two CRgn objects to determine whether they are equivalent. |
|
Returns a pointer to a CRgn object when given a handle to a Windows region. |
|
Fills the specified buffer with data describing the given region. |
|
Retrieves the coordinates of the bounding rectangle of a CRgn object. |
|
Moves a CRgn object by the specified offsets. |
|
Determines whether a specified point is in the region. |
|
Determines whether any part of a specified rectangle is within the boundaries of the region. |
|
Sets the CRgn object to the specified rectangular region. |
Public Operators
Name |
Description |
---|---|
Returns the Windows handle contained in the CRgn object. |
Remarks
A region is an elliptical or polygonal area within a window. To use regions, you use the member functions of class CRgn with the clipping functions defined as members of class CDC.
The member functions of CRgn create, alter, and retrieve information about the region object for which they are called.
For more information on using CRgn, see Graphic Objects.
Inheritance Hierarchy
CRgn
Requirements
Header: afxwin.h