BOOL EqualRect(lpRect1,lpRect2)
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.
Parameter | Type/Description |
lpRect1 | LPRECT Points to a RECT data structure that contains the upper-left and lower-right corner coordinates of the first rectangle. | |
lpRect2 | LPRECT Points to a RECT data structure that contains the upper-left and lower-right corner coordinates of the second rectangle. |
The return value specifies whether the specified rectangles are equal. It is nonzero if the two rectangles are identical. Otherwise, it is zero.