## Presentation Device Driver Reference for OS/2

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

### GreRestoreXformData - Syntax

Simulation support:

This function is simulated by a handling routine in the graphics engine.

Description

GreRestoreXformData restores a previously saved transform state. The current transform state is overwritten.

This function can be hooked by the presentation driver.

    #define INCL_GRE_XFORMS

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    ULONG    ulSize;     /*  Size in bytes of pBuffer. */

    PBYTE    pBuffer;    /*  Pointer to stored transform data. */

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

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

    BOOL     fSuccess;   /*  Return codes. */

    fSuccess = GreRestoreXformData(hdc, ulSize,

                 pBuffer, pInstance, lFunction);