Simulation support:

None. This function is mandatory for all drivers.

Description:

GreGetDCOrigin queries the origin of the device context that defines the bottom-left drawing origin for a display device or a banded hardcopy device.

This function must be supported by presentation drivers for display devices and for hardcopy devices that use banding. For other devices, the minimum requirement is for the handling routine to return Successful with pptlOrigin set to (0,0).

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC        hdc;         /*  Device context handle. */
PPOINTL    pptlOrigin;  /*  Pointer to the (X,Y) coordinates of the returned DC origin in screen coordinates. */
PVOID      pInstance;   /*  Pointer to instance data. */
ULONG      lFunction;   /*  High-order WORD=flags; low-order WORD=NGreGetDCOrigin. */
BOOL       rc;          /*  Return Code. */

rc = GreGetDCOrigin(hdc, pptlOrigin, pInstance,
       lFunction);


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