## Presentation Device Driver Reference for OS/2

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

### GreSetDefaultAttributes

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description

GreSetDefaultAttributes sets the default attributes for the specified primitive type according to the flags set in flAttrsMask.

This function is supported by the graphics engine.

    #define INCL_GRE_DEVSUPPORT

    #include <os2.h>

    HDC        hdc;          /*  Device context handle. */

    LONG       lPrimType;    /*  Bundle primitive type. */

    ULONG      flAttrsMask;  /*  Flags indicating which attributes are to be modified. */

    PBUNDLE    pAttrs;       /*  Pointer. */

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

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

    BOOL       fSuccess;     /*  Return codes. */

    fSuccess = GreSetDefaultAttributes(hdc, lPrimType,

                 flAttrsMask, pAttrs, pInstance,

                 lFunction);