## Presentation Device Driver Reference for OS/2

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

### GreCopyClipRegion

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Simulation support:

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

Description

GreCopyClipRegion copies the visible region, clip region, or DC region, and returns the complexity and bounds of the resulting region.

This function can be hooked by the presentation driver.

    #define INCL_GRE_CLIP

    #include <os2.h>

    HDC       hdc;         /*  Device context handle. */

    HRGN      hrgn;        /*  Visible region handle. */

    PRECTL    prclBounds;  /*  Pointer to the bounding rectangle of the returned region. */

    ULONG     flOptions;   /*  These flags determine the type of region to be returned in hrgn: */

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

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

    LONG      rc;          /*  Return codes. */

    rc = GreCopyClipRegion(hdc, hrgn, prclBounds,

           flOptions, pInstance, lFunction);