Simulation support:

None. This function is mandatory for all drivers.

Description:

GreGetLineOrigin returns the current line style from the DC instance data and stores the current position to the address indicated by pptlXY. The presentation driver maintains the line style information.

This function must be supported by the presentation driver. GreGetLineOrigin is used to get the line style and current position simultaneously. This function call can be handled by bit-map simulation.

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC        hdc;        /*  Device context handle. */
PPOINTL    pptlXY;     /*  Pointer to an (X,Y) coordinate pair to which the current position is returned. */
PVOID      pInstance;  /*  Pointer to instance data. */
ULONG      lFunction;  /*  High-order WORD=flags; low-order WORD=NGreGetLineOrigin. */
LONG       rc;         /*  Return Code. */

rc = GreGetLineOrigin(hdc, pptlXY, pInstance,
       lFunction);


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