Function:
CopyRect(lpDestRect, lpSourceRect)

Description:
Sets one rectangle equal to another. This is done by duplicating all of the source rectangle's member values to the corresponding ones in the target rectangle. This is faster than setting all four values manually in your code.

Parameters:
lpDestRect: Points to the RECT structure that contains the target rectangle to set.
lpSourceRect : Points to the RECT structure that contains tThe source rectangle.

Returns:
Returns 1 if successful, or 0 if an error occurred.

Example:
Click on the calc icon to view a sample of the CopyRect function.