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 |
); |
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.