## Presentation Device Driver Reference for OS/2

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

### GreCombineShortLineRegion

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Simulation support:

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

Description

GreCombineShortLineRegion combines an area lying between polyshortline pairs, which is represented by a SCANDATA structure, with a region. The pScanData parameter is ORed into the region. This function is used to build regions for path simulation. The function always expects the points in the shortlines to be in device coordinates. An error is raised when the region specified is currently selected as the clip region.

This function can be hooked by the presentation driver.

    #define INCL_GRE_REGIONS

    #include <os2.h>

    HDC          hdc;        /*  Device context handle. */

    HRGN         hrgn;       /*  Region handle. */

    PSCANDATA    pScanData;  /*  Pointer to a SCANDATA structure: */

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

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

    BOOL         rc;         /*  This function returns BOOLEAN (fSuccess). */

    rc = GreCombineShortLineRegion(hdc, hrgn,

           pScanData, pInstance, lFunction);