EqualRect

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
);
 

Parameters

lprc1
Pointer to a RECT structure that contains the logical coordinates of the first rectangle.
lprc2
Pointer to a RECT structure that contains the logical coordinates of the second rectangle.

Return Values

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.

QuickInfo

  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.

See Also

Rectangles Overview, Rectangle Functions, IsRectEmpty, PtInRect, RECT