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
Information
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.

OffsetRgn

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function moves a region by the specified offsets.


int OffsetRgn(
  HRGN hrgn, 
  int nXOffset, 
  int nYOffset
); 

hrgn

[in] Handle to the region to be moved.

nXOffset

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

nYOffset

[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.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft