This function draws a pointer in the passed hps at the passed coordinates [lx, ly] and at the passed size [lcx, lcy].

#define INCL_WINPOINTERS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HPS         hps;          /*  Presentation space handle into which the pointer is drawn. */
LONG        lx;           /*  X coordinate at which to draw the pointer, in device coordinates. */
LONG        ly;           /*  Y coordinate at which to draw the pointer, in device coordinates. */
LONG        lcx;          /*  X size at which to draw the pointer, in device coordinates. */
LONG        lcy;          /*  Y size at which to draw the pointer, in device coordinates. */
HPOINTER    hptrPointer;  /*  Pointer handle. */
ULONG       ulHalftone;   /*  Shading control with which to draw the pointer: */
BOOL        fSuccess;     /*  Success indicator: */

fSuccess = WinStretchPointer(hps, lx, ly,
             lcx, lcy, hptrPointer, ulHalftone);


[Back] [Next]