This function creates or changes a cursor for a specified window.

#define INCL_WINCURSORS /* Or use INCL_WIN, INCL_PM, Also in COMMON section */
#include <os2.h>

HWND      hwnd;      /*  Handle of window in which cursor is displayed. */
LONG      lx;        /*  x-position of cursor. */
LONG      ly;        /*  y-position of cursor. */
LONG      lcx;       /*  x-size of cursor. */
LONG      lcy;       /*  y-size of cursor. */
ULONG     ulrgf;     /*  Controls the appearance of the cursor. */
PRECTL    prclClip;  /*  Cursor rectangle. */
BOOL      rc;        /*  Success indicator. */

rc = WinCreateCursor(hwnd, lx, ly, lcx, lcy,
       ulrgf, prclClip);


[Back] [Next]