Gdi::OffsetRgn_I

This method moves a region by the specified offsets.

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

OffsetRgn

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.