## Presentation Device Driver Reference for OS/2

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

### GreSetPel

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

None. This function is mandatory for all drivers.

Description:

GreSetPel sets a pel to the current line attribute, color, and mix.

This function must be supported by the presentation driver. GreSetPel is called by the function GpiSetPel, and is used to set the value of a pel at a specified (X,Y) coordinate within a device context. This function can be handled by bit map-simulation.

    #define INCL_GRE_BITMAPS

    #include <os2.h>

    HDC        hdc;        /*  Device context handle. */

    PPOINTL    pptlPel;    /*  Pointer. */

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

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

    LONG       rc;         /*  Return codes. */

    rc = GreSetPel(hdc, pptlPel, pInstance, lFunction);