## Presentation Device Driver Reference for OS/2

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

### GreSetGlobalAttribute

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description

GreSetGlobalAttribute sets the specified attribute in the pen, pattern, character, image, and marker bundles.

This function is supported by the graphics engine.

    #define INCL_GRE_DEVSUPPORT

    #include <os2.h>

    HDC      hdc;         /*  Device context handle. */

    LONG     lAttrType;   /*  Specifies the attribute type. */

    LONG     lAttribute;  /*  New attribute value. */

    ULONG    flOptions;

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

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

    BOOL     fSuccess;    /*  Return codes. */

    fSuccess = GreSetGlobalAttribute(hdc, lAttrType,

                 lAttribute, flOptions, pInstance,

                 lFunction);