GETSETPAPERMETRICS

Syntax

short Escape(hDC, GETSETPAPERMETRICS, sizeof(RECT),lpNewPaper,lpPrevPaper)

This escape sets the paper type according to the given paper metrics information. It also retrieves the current printer's paper metrics information. This escape is provided only for backward compatibility. An application should call the ExtDeviceMode function instead.

This escape expects a RECT data structure representing the imageable area of the physical page and assumes the origin is in the upper-left corner.

Parameter Type/Description  

hDC HDC Identifies the device context.  
lpNewPaper LPRECT Points to a RECT data structure that defines the new imageable area.  
lpPrevPaper LPRECT Points to a RECT data structure that receives the previous imageable area.  

Return Value

The return value is positive if successful, zero if the escape is not implemented, and negative if an error occurs.

Comments

This escape is provided only for backward compatibility. New applications should use the GDI DeviceCapabilities and ExtDeviceMode functions instead.