This function copies the coordinates of one rectangle to another.

BOOL CopyRect(
LPRECT lprcDst, 
const RECT *lprcSrc


  • lprcDst
    Long pointer to the RECT structure that will receive the logical coordinates of the source rectangle.
  • lprcSrc
    Long pointer to the RECT structure whose coordinates are to be copied.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.


Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h   Rectapi.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError, SetRect, SetRectEmpty, RECT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.