GETPRINTINGOFFSET

short Escape(hdc, GETPRINTINGOFFSET, NULL, NULL,lpOffset)

The GETPRINTINGOFFSET printer escape retrieves the offset from the upper-left corner of the physical page where the actual printing or drawing begins. This escape is generally not useful for devices that allow the user to set the origin of the printable area directly.

Parameters

hdc

HDC Identifies the device context.

lpOffset

LPPOINT Points to a POINT structure that will receive the printing offset (in the current orientation). The x member of the POINT structure receives the horizontal coordinate of the printing offset, in device units, and the y member receives the vertical coordinate of the printing offset, in device units.

Return Value

The return value specifies the outcome of the escape. This value is positive if the escape is successful. Otherwise, it is zero or negative.