OleIconToCursor function (olectl.h)
Converts an icon to a cursor.
void OleIconToCursor(
[in] HINSTANCE hinstExe,
[in] HICON hIcon
);
[in] hinstExe
This parameter is ignored.
[in] hIcon
A handle to the icon to be converted.
The function returns a handle to the new cursor object. The caller is responsible for deleting this cursor with the DestroyCursor function. If the conversion could not be completed, the return value is NULL.
This function calls the CopyCursor function.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | olectl.h |
Library | Oleaut32.lib |
DLL | Oleaut32.dll |