EqualRect

2.x

  BOOL EqualRect(lprc1, lprc2)    
  const RECT FAR* lprc1; /* address of structure with first rectangle */
  const RECT FAR* lprc2; /* address of structure with second rectangle */

The EqualRect function determines whether the two given rectangles are equal by comparing the coordinates of their upper-left and lower-right corners.

Parameters

lprc1

Points to a RECT structure that contains the logical coordinates of the first rectangle. The RECT structure has the following form:

typedef struct tagRECT {    /* rc */
   int left;
   int top;
   int right;
   int bottom;
} RECT;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

lprc2

Points to a RECT structure that contains the logical coordinates of the second rectangle.

Return Value

The return value is nonzero if the two rectangles are identical. Otherwise, it is zero.