EqualRect

  BOOL EqualRect(lpRect1, lpRect2)    
  CONST RECT *lpRect1; /* address of structure with first rectangle */
  CONST RECT *lpRect2; /* address of structure with second rectangle */

This function determines whether two rectangles are equal by comparing the coordinates of their upper-left and lower-right corners. If the values of these coordinates are equal, EqualRect returns a nonzero value; otherwise, it returns zero.

Parameters

lpRect1

Points to a RECT structure that contains the upper-left and lower-right corner coordinates of the first rectangle.

lpRect2

Points to a RECT structure that contains the upper-left and lower-right corner coordinates of the second rectangle.

Return Value

The return value specifies whether the specified rectangles are equal. It is nonzero if the two rectangles are identical. Otherwise, it is zero.