DWORD OffsetViewportOrg(hDC,X,Y)
This function modifies the viewport origin relative to the current values. The formulas are written as follows:
xNewVO = xOldVO + X
yNewVO = yOldVO + Y
The new origin is the sum of the current origin and the X and Y values.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
X | int Specifies the number of device units to add to the current origin's x-coordinate. | |
Y | int Specifies the number of device units to add to the current origin's y-coordinate. |
The return value specifies the previous viewport origin (in device coordinates). The previous y-coordinate is in the high-order word; the previous x-coordinate is in the low-order word.