CRECT,CSIZE,CRGN,CPOINT
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 );
Parameters
l
Specifies the left position of CRect.
t
Specifies the top of CRect.
r
Specifies the right position of CRect.
b
Specifies the bottom of CRect.MSDN写的很全,内容很多,真的都想搬上来。。。
CSize( int initCX, int initCY );
CSize( SIZE initSize );
CSize( POINT initPt );
CSize( DWORD dwSize );
Parameters
initCX
Sets the cx member for the CSize.
initCY
Sets the cy member for the CSize.
initSize
SIZE structure or CSize object used to initialize CSize.
initPt
POINT structure or CPoint object used to initialize CSize.
dwSize
DWORD used to initialize CSize. The low-order word is the cx member and the high-order word is the cy member.
Remarks
Constructs a CSize object. If no arguments are given, cx and cy members are not initialized.
CPoint( );
CPoint( int initX, int initY );
CPoint( POINT initPt );
CPoint( SIZE initSize );
CPoint( DWORD dwPoint );
Parameters
initX
Specifies the value of the x member of CPoint.
initY
Specifies the value of the y member of CPoint.
initPt
POINT structure or CPoint that specifies the values used to initialize CPoint.
initSize
SIZE structure or CSize that specifies the values used to initialize CPoint.
dwPoint
Sets the x member to the low-order word of dwPoint and the y member to the high-order word of dwPoint.
Remarks
Constructs a CPoint object. If no arguments are given, x and y members are not initialized.
有个Offset方法好像挺有用的。
CRgn::CRgn
CRgn( );
Remarks
Constructs a CRgn object. The m_hObject data member does not contain a valid Windows GDI region until the object is initialized with one or more of the other CRgn member functions.
方法很多,使用时查找MSDN更好些

浙公网安备 33010602011771号