This function creates a pointer from a bit map.

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

HWND        hwndDesktop;  /*  Desktop-window handle or HWND_DESKTOP. */
HBITMAP     hbmPointer;   /*  Bit-map handle from which the pointer image is created. */
BOOL        fPointer;     /*  Pointer-size indicator. */
LONG        xHotspot;     /*  x-offset of hot spot within pointer from its lower left corner (in pels). */
LONG        yHotspot;     /*  y-offset of hot spot within pointer from its lower left corner (in pels). */
HPOINTER    hptr;         /*  Pointer handle. */

hptr = WinCreatePointer(hwndDesktop, hbmPointer,
         fPointer, xHotspot, yHotspot);


[Back] [Next]