CRect Class
CRect Class
CRect also includes member functions to manipulate CRect objects and Windows
RECT structures
This class is derived from the tagRECT structure. (The name tagRECT is a less-
commonly-used name for the RECT structure.) This means that the data members (left,
top, right, and bottom) of the RECT structure are accessible data members of CRect
The RECT structure defines the coordinates of the upper-left and lower-right corners of a
rectangle.
Construction
Determines whether the top, bottom, left, and right member variables are
IsRectNull
all equal to 0.
operator &= Sets CRect equal to the intersection of CRect and a rectangle.
Subtracts the given offsets from CRect or deflates CRect and returns
operator –
the resulting CRect.
Creates the union of CRect and a rectangle and returns the resulting
operator |
CRect.
Adds the given offsets to CRect or inflates CRect and returns the
operator +
resulting CRect.
operator
Converts a CRect to an LPCRECT.
LPCRECT
operator
Converts a CRect to an LPRECT.
LPRECT
CRect::CenterPoint - Calculates the centerpoint of CRect by adding the left and right
values and dividing by two, and adding the top and bottom values and dividing by two.
CRect::CopyRect
CRect::CRect
CRect::DeflateRect
CRect::EqualRect
CRect::Height
CRect::InflateRect
CRect::IntersectRect
CRect::IsRectEmpty
CRect::IsRectNull
CRect::MoveToX
CRect::MoveToXY
CRect::MoveToY
CRect::NormalizeRect
CRect::OffsetRect
CRect::PtInRect
CRect::SetRect
CRect::SetRectEmpty
CRect::Size
CRect::SubtractRect
CRect::TopLeft
CRect::UnionRect
CRect::Width