Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OleIconToCursor
Collapse the table of content
Expand the table of content

OleIconToCursor function

Converts an icon to a cursor.

Syntax


HCURSOR OleIconToCursor(
  _In_ HINSTANCE hinstExe,
  _In_ HICON     hIcon
);

Parameters

hinstExe [in]

This parameter is ignored.

hIcon [in]

A handle to the icon to be converted.

Return value

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.

Remarks

This function calls the CopyCursor function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Olectl.h

Library

Oleaut32.lib

DLL

Oleaut32.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft