IVsUIShell2::GetVSCursor Method (UInt32, IntPtr)
Visual Studio 2015
Returns a handle to a cursor of a specified cursor type.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- cursor
-
Type:
System::UInt32
[in] A value from the __VSCURSORTYPE enumeration specifying the type of cursor to be returned.
- phIcon
-
Type:
System::IntPtr
[out] The 32-bit integer handle (HCURSOR) to the appropriate cursor.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsUIShell2::GetVSCursor(
[in] VSCURSORTYPE cursor,
[out] HCURSOR* phIcon
);
VSPackages that are written in unmanaged code or C++ can directly use the cursor by using the standard Windows cursor management tools. For more information, see Cursors.
VSPackages that are written in managed code should instantiate an instance of the Cursor class by using the overload of its constructor that takes a handle to a cursor as an argument. For more information, see T:System.Windows.Forms.Cursor.
Show: