#define GETPRINTINGOFFSET 13 |
short Control(lpDevice, GETPRINTINGOFFSET, NULL, lpOffset) | |||
LPPDEVICE lpDevice; | |||
LPPOINT lpOffset; |
The GETPRINTINGOFFSET escape retrieves the offset from location 0, 0 (the upper-left corner of the physical page), which is the point at which the actual printing or drawing begins.
This escape function is not generally useful for devices that allow the user to set the origin by hand.
lpDevice
Points to a PDEVICE structure specifying the destination device.
lpOffset
Points to a POINT structure that receives the horizontal and vertical coordinates (in device units) of the printing offset. The POINT structure has the following form:
typedef struct tagPOINT {
short x;
short y;
} POINT;
The return value is positive if the escape is successful. Otherwise, it is negative.