SIZE structure

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

Syntax

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

Members

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

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

Remarks

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windef.h (include Windows.h)

See also

Bitmaps Overview

Bitmap Structures

GetAspectRatioFilterEx

GetBitmapDimensionEx

GetTextExtentPoint32

GetViewportExtEx

GetWindowExtEx

ScaleViewportExtEx

ScaleWindowExtEx

SetBitmapDimensionEx

SetViewportExtEx

SetWindowExtEx