## Presentation Device Driver Reference for OS/2

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

### GreAreaSetAttributes

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Simulation support:

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

Description

GreAreaSetAttributes is called by the graphics engine after processing a call to GreSetAttrs received inside an area or path bracket. The handling routine in the graphics engine does nothing. Its purpose is to provide an entry in the dispatch table that can be hooked by presentation drivers.

This function must be hooked by presentation drivers that perform their own area or path simulations.

    #define INCL_GRE_PATHS

    #include <os2.h>

    HDC        hdc;          /*  Device context handle. */

    LONG       lPrimType;    /*  Bundle primitive type. */

    ULONG      flDefsMask;   /*  Flags attributes for default. */

    ULONG      flAttrsMask;  /*  Flags attributes for modification. */

    PBUNDLE    pAttrs;       /*  Pointer to fixed-format record bundle. */

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

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

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

    fSuccess = GreAreaSetAttributes(hdc, lPrimType,

                 flDefsMask, flAttrsMask, pAttrs,

                 pInstance, lFunction);