OffsetClipRgn function (wingdi.h)

The OffsetClipRgn function moves the clipping region of a device context by the specified offsets.

Syntax

int OffsetClipRgn(
  [in] HDC hdc,
  [in] int x,
  [in] int y
);

Parameters

[in] hdc

A handle to the device context.

[in] x

The number of logical units to move left or right.

[in] y

The number of logical units to move up or down.

Return value

The return value specifies the new region's complexity and can be one of the following values.

Return code Description
NULLREGION
Region is empty.
SIMPLEREGION
Region is a single rectangle.
COMPLEXREGION
Region is more than one rectangle.
ERROR
An error occurred. (The current clipping region is unaffected.)

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

Clipping Functions

Clipping Overview

SelectClipRgn