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 |
); |
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 GetLastError.