This example calls WinLoadPointer to load an application defined pointer. When processing the WM_MOUSEMOVE message, the loaded pointer is displayed by calling WinSetPointer.
#define INCL_WINPOINTERS /* Window Pointer Functions */ #include <os2.h> HPOINTER hptrCrossHair;/* pointer handle */ case WM_CREATE: hptrCrossHair = WinLoadPointer(HWND_DESKTOP, 0L, /* load from .exe file */ IDP_CROSSHAIR); /* identifies the pointer */ case WM_MOUSEMOVE: WinSetPointer(HWND_DESKTOP, hptrCrossHair);