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

#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. */
HPOINTER    hptrPointer;  /*  Pointer handle. */
ULONG       ulHalftone;   /*  Shading control with which to draw the pointer. */
BOOL        rc;           /*  Success indicator. */

rc = WinDrawPointer(hps, lx, ly, hptrPointer,
       ulHalftone);


[Back] [Next]