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.
Windows NT: To get extended error information, call GetLastError.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Rectangles Overview, Rectangle Functions, IsRectEmpty, PtInRect, RECT