## Presentation Device Driver Reference for OS/2

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

### GreRestoreDC

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Description

GreRestoreDC restores the contents of a previously saved device context.

This function is supported by the graphics engine.

    #define INCL_GRE_DCS

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    LONG     idDC;       /*  DC state identifier. */

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

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

    BOOL     fSuccess;   /*  Return codes. */

    fSuccess = GreRestoreDC(hdc, idDC, pInstance,

                 lFunction);