CopyRect

The CopyRect function copies the coordinates of one rectangle to another.

BOOL CopyRect(

LPRECT lprcDst, // pointer to structure for destination rectangle
CONST RECT *lprcSrc // pointer to structure with source rectangle
);  

Parameters

lprcDst

Points to the RECT structure that will receive the logical coordinates of the source rectangle.

lprcSrc

Points to the RECT structure whose coordinates are to be copied.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also

RECT, SetRect, SetRectEmpty