## Presentation Device Driver Reference for OS/2

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

### GreGetPickWindow - Syntax

Simulation support:

This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.

Description:

GreGetPickWindow stores (at the location addressed by pPick) a RECTL structure giving the position and size of the pick window in page- coordinate space.

    #define INCL_GRE_PICK

    #include <os2.h>

    HDC       hdc;        /*  The device context handle. */

    PRECTL    pPick;      /*  A pointer to a pick window. */

    PVOID     pInstance;  /*  A pointer to instance data. */

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

    BOOL      fSuccess;   /*  Return codes. */

    fSuccess = GreGetPickWindow(hdc, pPick, pInstance,

                 lFunction);