Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

This function moves a region by the specified offsets.

int OffsetRgn(
  HRGN hrgn, 
  int nXOffset, 
  int nYOffset


[in] Handle to the region to be moved.


[in] Specifies the number of logical units to move left or right.


[in] Specifies the number of logical units to move up or down.

The return value specifies the new region's complexity.

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.

Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2015 Microsoft