Share via


Gdi::OffsetRgn_I (Windows Embedded CE 6.0)

1/6/2010

This method moves a region by the specified offsets.

Syntax

static WINGDIAPI int WINAPI OffsetRgn_I(
  HRGN hrgn, 
  int nXOffset, 
  int nYOffset
);

Parameters

  • hrgn
    [in] Handle to the region to be moved.
  • nXOffset
    [in] Integer that specifies the number of logical units to move left or right.
  • nYOffset
    [in] Integer that specifies the number of logical units to move up or down.

Return Value

The return value specifies the complexity of the new region.

NULLREGION indicates that the region is empty.

SIMPLEREGION indicates that the region is a single rectangle.

COMPLEXREGION indicates that the region is more than a single rectangle.

ERROR indicates that an error occurred; the current clipping region is unaffected.

Remarks

This method is an internal version of the OffsetRgn function.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
OffsetRgn