Previous Next

SIZE

The SIZE structure defines the width and height of a rectangle.

typedef struct tagSIZE {
  LONG  cx;
  LONG  cy;
} SIZE, *PSIZE, *LPSIZE;

Members

cx
Specifies the rectangle's width. The units depend on which function uses this structure.
cy
Specifies the rectangle's height. The units depend on which function uses this structure.

Headers

Declared in windef.h. Include windows.h.

Comments

The rectangle dimensions stored in this structure can correspond to viewport extents, window extents, text extents, bitmap dimensions, or the aspect-ratio filter for some extended functions.

See Also

RECT, RECTL