SIZE structure (windef.h)

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

Syntax

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.

Remarks

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.

Requirements

Requirement Value
Header windef.h (include Windows.h)

See also

RECT

RECTL