IVsUIShell2.GetVSCursor(UInt32, IntPtr) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定游标类型的游标的句柄。
public:
int GetVSCursor(System::UInt32 cursor, [Runtime::InteropServices::Out] IntPtr % phIcon);
public int GetVSCursor (uint cursor, out IntPtr phIcon);
abstract member GetVSCursor : uint32 * nativeint -> int
Public Function GetVSCursor (cursor As UInteger, ByRef phIcon As IntPtr) As Integer
参数
- cursor
- UInt32
中一个来自枚举的值,该值 __VSCURSORTYPE 指定要返回的游标的类型。
- phIcon
-
IntPtr
nativeint
弄32位整数句柄 (HCURSOR) 到相应的游标。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT IVsUIShell2::GetVSCursor(
[in] VSCURSORTYPE cursor,
[out] HCURSOR* phIcon
);
使用非托管代码或 c + + 编写的 Vspackage 可以通过使用标准的 Windows 游标管理工具直接使用游标。 有关详细信息,请参阅 Cursors。
用托管代码编写的 Vspackage 应 Cursor 使用其构造函数的重载作为参数,来实例化类的实例。 有关详细信息,请参阅 T:System.Windows.Forms.Cursor。