CopyRect

This function copies the coordinates of one rectangle to another.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

BOOL CopyRect(LPRECT lprcDst, const RECT *lprcSrc);

Parameters

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.

See Also

RECT, SetRect, SetRectEmpty