Function:
SetRectEmpty(lpRect)

Description:
Sets a rectangle to an empty state. An empty rectangle is one that has a nonpositive width and/or height.

Parameters:
lpRect: Points to the RECT structure that contains the rectangle to be set as empty.

Returns:
Returns 1 if successful, or 0 if an error occurred.

 

Example:
Click on the calc icon to view a sample of the SetRectEmpty function.