This example creates a cursor of default height and width at (0,200) which will be visible within the entirety of the input window.

#define INCL_WINCURSORS         /* Window Cursor Functions      */
#include <os2.h>

BOOL  fSuccess;         /* success indicator                    */
HWND    hwnd;           /* cursor display window                */
LONG   lx = 0;          /* cursor x position                    */
LONG   ly = 200;        /* cursor y position                    */
ULONG   ulrgf;          /* cursor appearance                    */

fSuccess = WinCreateCursor(hwnd, lx, ly, 0, 0, ulrgf, NULL);


[Back] [Next]