RECT

This structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

typedef struct _RECT { 
LONG left; 
LONG top; 
LONG right; 
LONG bottom; 
} RECT; 

Members

  • left
    Specifies the x-coordinate of the upper-left corner of the rectangle.
  • top
    Specifies the y-coordinate of the upper-left corner of the rectangle.
  • right
    Specifies the x-coordinate of the lower-right corner of the rectangle.
  • bottom
    Specifies the y-coordinate of the lower-right corner of the rectangle.

Remarks

When RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels. This structure is identical to the RECTL structure.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Windef.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

FillRect, RECTL

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.