CRect::CopyRect
복사본은 lpSrcRect 사각형에 CRect.
void CopyRect(
LPCRECT lpSrcRect
) throw( );
매개 변수
- lpSrcRect
가리키는 있는 RECT 구조 또는 CRect 복사할 개체입니다.
예제
CRect rectSource(35, 10, 125, 10);
CRect rectDest;
rectDest.CopyRect(&rectSource);
// rectDest is now set to (35, 10, 125, 10)
RECT rectSource2;
rectSource2.left = 0;
rectSource2.top = 0;
rectSource2.bottom = 480;
rectSource2.right = 640;
rectDest.CopyRect(&rectSource2);
// works against RECT structures, too!
// rectDest is now set to (0, 0, 640, 480)
요구 사항
헤더: atltypes.h