## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GrePolyShortLine

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

None. This function is mandatory for all drivers.

Description:

GrePolyShortLine draws a series of shortlines. The current (X,Y) position is not changed. A polyshortline is a linked list of shortlines.

This function must be supported by all presentation drivers except those that hook GrePolyLine and all of the GreArcxxx functions that are simulated by handling routines in the graphics engine. All function calls to GrePolyShortLine come from either GrePolyLine or the GreArcxxx functions. GrePolyShortLine might be accessed from any of the curve-rendering functions. However, it is not guaranteed that curve rendering will call GrePolyShortLine.

    #define INCL_GRE_LINES

    #include <os2.h>

    HDC           hdc;        /*  Device context handle. */

    PSHORTLINE    psl;        /*  Pointer to SHORTLINE structure. */

    PVOID         pInstance;  /*  Pointer to instance data. */

    ULONG         lFunction;  /*  High-order WORD=flags; low-order WORD=NGrePolyShortLine. */

    LONG          rc;         /*  Return Code. */

    rc = GrePolyShortLine(hdc, psl, pInstance,

           lFunction);