## Presentation Device Driver Reference for OS/2

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

### GreArc - Syntax

Simulation support:

This function is simulated by a handling routine in the graphics engine.

Description

GreArc draws an arc through three points. These are the current position and the two points specified in the data structure. Upon completion, the current position is the third point of the arc.

This function can be hooked by the presentation driver.

    #define INCL_GRE_ARCS

    #include <os2.h>

    HDC        hdc;         /*  Device context handle. */

    PPOINTL    paptlPoint;  /*  Pointer to ArcData array. */

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

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

    LONG       rc;

    rc = GreArc(hdc, paptlPoint, pInstance, lFunction);