OffsetClipRgn
Syntax
int OffsetClipRgn(hDC,X,Y)
This function moves the clipping region of the given device by the specified offsets. The function moves the region X units along the x-axis and Y units along the y-axis.
| Parameter |
Type/Description |
|
| hDC |
HDC Identifies the device context. |
|
| X |
int Specifies the number of logical units to move left or right. |
|
| Y |
int Specifies the number of logical units to move up or down. |
|
Return Value
The return value specifies 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. |
|