## Presentation Device Driver Reference for OS/2

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

### GreSetColorCursor

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

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

Description:

GreSetColorCursor sets the bit maps that define a color cursor or pointer.

    #define INCL_WINPOINTERS

    #include <os2.h>

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

    PPOINTERINFO    pPointerInfo;  /*  A pointer to a pointer information structure. */

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

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

    BOOL            fSuccess;      /*  Return codes. */

    fSuccess = GreSetColorCursor(hdc, pPointerInfo,

                 pInstance, lFunction);