## Presentation Device Driver Reference for OS/2

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

### GreSetDefaultViewingLimits - Syntax

Description

GreSetDefaultViewingLimits sets the boundaries of the default viewing (clip ) limits to the values specified by prclViewingLimits.

This function is supported by the graphics engine.

    #define INCL_GRE_DEVSUPPORT

    #include <os2.h>

    HDC       hdc;                /*  Device context handle. */

    PRECTL    prclViewingLimits;  /*  Pointer to limits of viewing area. */

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

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

    BOOL      fSuccess;           /*  Return codes. */

    fSuccess = GreSetDefaultViewingLimits(hdc,

                 prclViewingLimits, pInstance,

                 lFunction);