Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CRect::CRect
CRect                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CRect();
  CRect( int l, int t, int r, int b );
  CRect( const RECT& srcRect );
  CRect( LPRECT lpSrcRect );
  CRect( POINT point, SIZE size );
 
  Parameter   Description
 
  <l>         Specifies the left position of the CRect.
 
  <t>         Specifies the top of the CRect.
 
  <r>         Specifies the right position of the CRect.
 
  <b>         Specifies the bottom of the CRect.
 
  <srcRect>   Refers to the RECT structure with the dimensions for the
              CRect object.
 
  <lpSrcRect> Points to the RECT structure with the dimensions for the
              CRect object.
 
  <point>     Specifies the origin point for the rectangle to be
              constructed. Corresponds to the top-left corner.
 
  <size>      Specifies the displacement from the top-left corner to the
              bottom-right corner of the rectangle to be constructed.
 
  Remarks
 
  Constructs a CRect object.
 
  The CRect( const RECT& ) and CRect( LPRECT ) member functions perform a
  CopyRect. The other constructors initialize the member variables of the
  object directly.
 
  See Also
 
  CRect::SetRect, CRect::CopyRect, CRect::operator =
 
 
                                     -♦-