int CopyRect(lprcDest, lprcSource) | |||||
LPRECT lprcDest; | /* address of destination rectangle | */ | |||
CONST RECT *lprcSource; | /* address of source rectangle | */ |
The CopyRect function copies the dimensions of one rectangle to another.
lprcDest
Points to the RECT structure that will receive the dimensions of the source rectangle. The RECT structure has the following form:
typedef struct tagRECT { /* rc */
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
lprcSource
Points to the RECT structure whose dimensions are to be copied.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
SetRect