Simulation support:

None. This function is mandatory for all drivers.

Description:

GreDeviceSetDCOrigin sets the origin of the device context which, when created, has its origin set to 1.0,0.

This function must be supported by presentation drivers for display devices and for hardcopy devices that use banding. The minimum requirement for other hardcopy devices is for the handling routine to return TRUE if the origin addressed by pptlDC is set to 0, or to log an error and return FALSE.

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC        hdc;        /*  Device context handle. */
PPOINTL    pptlDC;     /*  Pointer to the DC origin. */
PVOID      pInstance;  /*  Pointer to instance data. */
ULONG      lFunction;
BOOL       rc;         /*  Return Codes. */

rc = GreDeviceSetDCOrigin(hdc, pptlDC, pInstance,
       lFunction);


[Back: GreDeviceSetDCOrigin]
[Next: GreDeviceSetDCOrigin Parameter - hdc]