Converts an icon to a cursor. For Win32 applications, this function calls the Win32 function CopyCursor(hIcon).
STDAPI OleIconToCursor(
HINSTANCE hinstExe, |
//Ignored in Win32 |
HICON hIcon |
//Handle to the icon |
); |
Parameters
Remarks
The return value is an HCURSOR for the new cursor object. The caller is responsible for deleting this cursor with the Win32 function DestroyCursor. If the conversion could not be completed, the return value is NULL.