This function loads a pointer from a resource file into the system.

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

HWND        hwndDeskTop;  /*  Desktop-window handle. */
HMODULE     Resource;     /*  Resource identity containing the pointer definition. */
ULONG       idPointer;    /*  Identifier of the pointer to be loaded. */
HPOINTER    hptr;         /*  Pointer handle. */

hptr = WinLoadPointer(hwndDeskTop, Resource,
         idPointer);


[Back] [Next]