IsRectEmpty  1MK60GT 

The IsRectEmpty function determines whether the specified rectangle is empty. A empty rectangle is one that has no area; that is, the coordinate of the right side is less than or equal to the coordinate of the left side, or the coordinate of the bottom side is less than or equal to the coordinate of the top side.

BOOL IsRectEmpty(

    CONST RECT *lprc

// address of structure with rectangle

   );

 

 

Parameters

lprc

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

 

Return Values

If the rectangle is empty, the return value is nonzero.

If the rectangle is not empty, the return value is zero. To get extended error information, call GetLastError11C2VS7.

See Also

EqualRect, PtInRect, RECT