A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



OffsetClipRgn

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

VB4-32,5,6
Declare Function OffsetClipRgn Lib "gdi32" Alias "OffsetClipRgn" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- hdc
Identifies the device context.

- nXOffset
Specifies the number of logical units to move left or right.

- nYOffset
Specifies the number of logical units to move up or down.

Return Values
If the function succeeds, the return value specifies the new region’s complexity and can be any one of the following values:
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.)

Last update: 07 April 2006