This example obtains information about any current cursor.

#define INCL_WINCURSORS
#define INCL_WINWINDOWMGR
#include <OS2.H>
HWND hwnd;    /* handle of window that has pointer captured */
CURSORINFO cursorinfo;


WinQueryCursorInfo(hwnd_DESKTOP,    /*  get cursor info  */
                   &cursorinfo);


[Back] [Next]