Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.OffsetRect Method

The OffsetRect function moves the specified rectangle by the specified offsets.

Syntax
Public Sub OffsetRect (ByRef lpRect As RECT, _
ByVal x As Long, _
ByVal y As Long)
Parameters
Parameter Description
ByRef lpRect As RECT Pointer to a RECT structure that contains the logical coordinates of the rectangle to be moved.
ByVal x As Long Specifies the amount to move the rectangle left or right. This parameter must be a negative value to move the rectangle to the left.
ByVal y As Long Specifies the amount to move the rectangle up or down. This parameter must be a negative value to move the rectangle up.
Remarks
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.