int OffsetClipRgn(hdc, nXOffset, nYOffset) | |||||
HDC hdc; | /* device-context handle | */ | |||
int nXOffset; | /* offset along x-axis | */ | |||
int nYOffset; | /* offset along y-axis | */ |
The OffsetClipRgn function moves the clipping region of the given device by the specified offsets.
hdc
Identifies the device context.
nXOffset
Specifies the number of logical units to move left or right.
nYOffset
Specifies the number of logical units to move up or down.
The return value specifies the new region's complexity. It can be any one of the following values:
Value | Meaning |
COMPLEXREGION | Clipping region consists of multiple rectangles. |
ERROR | An error occurred. (The current clip-region is not affected.) |
NULLREGION | Clipping region is empty. |
SIMPLEREGION | Clipping region is a single rectangle. |
CreateEllipticRgn, SelectClipRgn