home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CRect

tagRECT
   |
   +--CRect

   in AFXWIN.H

class CRect
extends tagRECT


Constructor Summary
CRect( int l, int t, int r, int b )
          
CRect( const RECT& srcRect )
          
CRect( LPCRECT lpSrcRect )
          
CRect( POINT point, SIZE size )
          
CRect( POINT topLeft, POINT bottomRight )
          
CRect()
          
 
Method Summary
 const CPoint& BottomRight() const
          
 CPoint CenterPoint() const
          
 void CopyRect( LPCRECT lpSrcRect )
          
 void DeflateRect( int l, int t, int r, int b )
          
 void DeflateRect( SIZE size )
          
 void DeflateRect( LPCRECT lpRect )
          
 void DeflateRect( int x, int y )
          
 BOOL EqualRect( LPCRECT lpRect ) const
          
 int Height() const
          
 void InflateRect( LPCRECT lpRect )
          
 void InflateRect( int l, int t, int r, int b )
          
 void InflateRect( int x, int y )
          
 void InflateRect( SIZE size )
          
 BOOL IntersectRect( LPCRECT lpRect1, LPCRECT lpRect2 )
          
 BOOL IsRectEmpty() const
          
 BOOL IsRectNull() const
          
 operator LPCRECT() const
          
 operator LPRECT()
          
 CRect MulDiv( int nMultiplier, int nDivisor ) const
          
 void NormalizeRect()
          
 void OffsetRect( int x, int y )
          
 void OffsetRect( SIZE size )
          
 void OffsetRect( POINT point )
          
 BOOL operator!=( const RECT& rect ) const
          
 CRect operator&( const RECT& rect2 ) const
          
 void operator&=( const RECT& rect )
          
 CRect operator+( POINT point ) const
          
 CRect operator+( LPCRECT lpRect ) const
          
 CRect operator+( SIZE size ) const
          
 void operator+=( SIZE size )
          
 void operator+=( LPCRECT lpRect )
          
 void operator+=( POINT point )
          
 CRect operator-( POINT point ) const
          
 CRect operator-( SIZE size ) const
          
 CRect operator-( LPCRECT lpRect ) const
          
 void operator-=( LPCRECT lpRect )
          
 void operator-=( POINT point )
          
 void operator-=( SIZE size )
          
 void operator=( const RECT& srcRect )
          
 BOOL operator==( const RECT& rect ) const
          
 CRect operator|( const RECT& rect2 ) const
          
 void operator|=( const RECT& rect )
          
 BOOL PtInRect( POINT point ) const
          
 void SetRect( int x1, int y1, int x2, int y2 )
          
 void SetRect( POINT topLeft, POINT bottomRight )
          
 void SetRectEmpty()
          
 CSize Size() const
          
 BOOL SubtractRect( LPCRECT lpRectSrc1, LPCRECT lpRectSrc2 )
          
 void SwapLeftRight()
          
 static void SwapLeftRight( LPRECT lpRect )
          
 const CPoint& TopLeft() const
          
 BOOL UnionRect( LPCRECT lpRect1, LPCRECT lpRect2 )
          
 int Width() const
          
 

Constructor Detail

CRect

public CRect( int l, int t, int r, int b );

CRect

public CRect( const RECT& srcRect );

CRect

public CRect( LPCRECT lpSrcRect );

CRect

public CRect( POINT point, SIZE size );

CRect

public CRect( POINT topLeft, POINT bottomRight );

CRect

public CRect();


Method Detail

BottomRight

public const CPoint& BottomRight() const;

CenterPoint

public CPoint CenterPoint() const;

CopyRect

public void CopyRect( LPCRECT lpSrcRect );

DeflateRect

public void DeflateRect( int l, int t, int r, int b );

DeflateRect

public void DeflateRect( SIZE size );

DeflateRect

public void DeflateRect( LPCRECT lpRect );

DeflateRect

public void DeflateRect( int x, int y );

EqualRect

public BOOL EqualRect( LPCRECT lpRect ) const;

Height

public int Height() const;

InflateRect

public void InflateRect( LPCRECT lpRect );

InflateRect

public void InflateRect( int l, int t, int r, int b );

InflateRect

public void InflateRect( int x, int y );

InflateRect

public void InflateRect( SIZE size );

IntersectRect

public BOOL IntersectRect( LPCRECT lpRect1, LPCRECT lpRect2 );

IsRectEmpty

public BOOL IsRectEmpty() const;

IsRectNull

public BOOL IsRectNull() const;

LPCRECT

public operator LPCRECT() const;

LPRECT

public operator LPRECT();

MulDiv

public CRect MulDiv( int nMultiplier, int nDivisor ) const;

NormalizeRect

public void NormalizeRect();

OffsetRect

public void OffsetRect( int x, int y );

OffsetRect

public void OffsetRect( SIZE size );

OffsetRect

public void OffsetRect( POINT point );

operator!=

public BOOL operator!=( const RECT& rect ) const;

operator&

public CRect operator&( const RECT& rect2 ) const;

operator&=

public void operator&=( const RECT& rect );

operator+

public CRect operator+( POINT point ) const;

operator+

public CRect operator+( LPCRECT lpRect ) const;

operator+

public CRect operator+( SIZE size ) const;

operator+=

public void operator+=( SIZE size );

operator+=

public void operator+=( LPCRECT lpRect );

operator+=

public void operator+=( POINT point );

operator-

public CRect operator-( POINT point ) const;

operator-

public CRect operator-( SIZE size ) const;

operator-

public CRect operator-( LPCRECT lpRect ) const;

operator-=

public void operator-=( LPCRECT lpRect );

operator-=

public void operator-=( POINT point );

operator-=

public void operator-=( SIZE size );

operator=

public void operator=( const RECT& srcRect );

operator==

public BOOL operator==( const RECT& rect ) const;

operator|

public CRect operator|( const RECT& rect2 ) const;

operator|=

public void operator|=( const RECT& rect );

PtInRect

public BOOL PtInRect( POINT point ) const;

SetRect

public void SetRect( int x1, int y1, int x2, int y2 );

SetRect

public void SetRect( POINT topLeft, POINT bottomRight );

SetRectEmpty

public void SetRectEmpty();

Size

public CSize Size() const;

SubtractRect

public BOOL SubtractRect( LPCRECT lpRectSrc1, LPCRECT lpRectSrc2 );

SwapLeftRight

public void SwapLeftRight();

SwapLeftRight

public static void SwapLeftRight( LPRECT lpRect );

TopLeft

public const CPoint& TopLeft() const;

UnionRect

public BOOL UnionRect( LPCRECT lpRect1, LPCRECT lpRect2 );

Width

public int Width() const;

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD