DWORD OffsetWindowOrg(hDC,X,Y)
This function modifies the viewport origin relative to the current values. The formulas are written as follows:
xNewWO = xOldWO + X
yNewWO = yOldWO + 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 logical units to add to the current origin's x-coordinate. | |
Y | int Specifies the number of logical units to add to the current origin's y-coordinate. |
The return value specifies the previous window origin (in logical coordinates). The previous y-coordinate is in the high-order word; the previous x-coordinate is in the low-order word.