Udostępnij za pośrednictwem


IVsUIHierarchyWindow2.SetCursor(IntPtr, IntPtr) Method

Definition

Sets a new cursor for the UI hierarchy window.

public:
 int SetCursor(IntPtr hNewCursor, [Runtime::InteropServices::Out] IntPtr % phOldCursor);
public int SetCursor (IntPtr hNewCursor, out IntPtr phOldCursor);
abstract member SetCursor : nativeint * nativeint -> int
Public Function SetCursor (hNewCursor As IntPtr, ByRef phOldCursor As IntPtr) As Integer

Parameters

hNewCursor
IntPtr

nativeint

[in] New cursor to display in the hierarchy window.

phOldCursor
IntPtr

nativeint

[out, retval] Cursor replaced by the new cursor.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

This method allows you to show a different cursor in the UI hierarchy window when required to indicate specific actions.

To use this method, pass your new cursor into the UI hierarchy window using this method. This method then returns the cursor that you are replacing. Store the old cursor returned by this method and upon completion of the action requiring the new cursor, call this method again, passing in the old cursor through the hNewCursor parameter.

Applies to