EqualRect

【勇芳软件工作室】汉化HomePreviousNext

EqualRect功能通过比较其左上角和右下角的坐标来确定两个指定的矩形是否相等。

BOOL EqualRect(

CONST RECT 【// pointer to structure with first rectangle】,//指向第一个矩形的结构的指针
CONST RECT 【// pointer to structure with second rectangle】//指向具有第二个矩形的结构的指针
); 

参数

【lprc2】

指向包含第一个矩形的逻辑坐标的RECT结构。

【If the two rectangles are identical, the return value is nonzero.】

指向包含第二个矩形的逻辑坐标的RECT结构。

返回值

如果两个矩形相同,则返回值不为零。

如果两个矩形不相同,则返回值为零。要获取扩展错误信息,请调用GetLastError.

也可以看看

IsRectEmpty, PtInRect, RECT