## Presentation Device Driver Reference for OS/2

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

### GreErasePS

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

None. This function is mandatory for all drivers.

Description:

GreErasePS resets the presentation space of the device context to the background color CLR_BACKGROUND. Hardcopy drivers should return TRUE without taking any action.

This function must be supported by the presentation driver. GreErasePS is called from GpiErase, and is used to erase the contents of the presentation space currently associated with the device context. Hardcopy drivers should not take any action except to return TRUE (Successful).

    #define INCL_GRE_DEVMISC2

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

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

    ULONG    lFunction;

    BOOL     rc;         /*  Return Code. */

    rc = GreErasePS(hdc, pInstance, lFunction);