Partilhar via


CDC::OffsetClipRgn

Moves the clipping region of the device context by the specified offsets.

int OffsetClipRgn(
   int x,
   int y 
);
int OffsetClipRgn(
   SIZE size 
);

Parameters

  • x
    Specifies the number of logical units to move left or right.

  • y
    Specifies the number of logical units to move up or down.

  • size
    Specifies the amount to offset.

Return Value

The new region's type. It can be any one of the following values:

  • COMPLEXREGION   Clipping region has overlapping borders.

  • ERROR   Device context is not valid.

  • NULLREGION   Clipping region is empty.

  • SIMPLEREGION   Clipping region has no overlapping borders.

Remarks

The function moves the region x units along the x-axis and y units along the y-axis.

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC::SelectClipRgn

OffsetClipRgn

Other Resources

CDC Members