Share via


SetCursor method

Called by MSHTML during mouseover events on the element to which the behavior is attached to enable the behavior to change the insertion point icon.

Syntax

HRESULT retVal = object.SetCursor(lPartID);

Parameters

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is called only if IHTMLPainterEventInfo::GetEventInfoFlags passes MSHTML the HTMLPAINT_EVENT_SETCURSOR flag.