short Escape(hDC, GETPRINTINGOFFSET,NULL, NULL, lpOffset)
This 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.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
lpOffset | LPPOINT Points to a POINT structure that will receive the printing offset. The x field of the POINT structure receives the horizontal coordinate of the printing offset in device units, and the y field receives the vertical coordinate of the printing offset in device units. |
The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.