The EqualRect function determines whether the two specified rectangles are equal by comparing the coordinates of their upper-left and lower-right corners.
BOOL EqualRect(
| CONST RECT *lprc1, | // pointer to structure with first rectangle | 
| CONST RECT *lprc2 | // pointer to structure with second rectangle | 
| ); | 
If the two rectangles are identical, the return value is nonzero.
If the two rectangles are not identical, the return value is zero. To get extended error information, call GetLastError.