This function destroys the current cursor, if it belongs to the specified window.
#define INCL_WINCURSORS /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HWND hwnd; /* Window handle to which the cursor belongs. */ BOOL rc; /* Success indicator. */ rc = WinDestroyCursor(hwnd);