Simulation support:

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

Description:

GreDeviceSetCursor sets the cursor bit map that defines the cursor shape.

#define INCL_GRE_BITMAPS
#include <os2.h>

HDC        hdc;          /*  The device context handle. */
PPOINTL    pptlHotSpot;  /*  A pointer to hot spot coordinates. */
ULONG      hbm;          /*  Bit-map handle used for the cursor image. */
PVOID      pInstance;    /*  A pointer to instance data. */
ULONG      lFunction;    /*  High-order WORD=flags; low-order WORD=NGreDeviceSetCursor. */
BOOL       fSuccess;     /*  Return codes. */

fSuccess = GreDeviceSetCursor(hdc, pptlHotSpot,
             hbm, pInstance, lFunction);


[Back: GreDeviceSetCursor]
[Next: GreDeviceSetCursor Parameter - hdc]