IVsMouseCursorProvider.SetMouseCursor 方法
表示文字的標記用戶端應該呼叫 Win 32 API 函式SetCursor。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function SetMouseCursor ( _
dwReserved As UInteger _
) As Integer
int SetMouseCursor(
uint dwReserved
)
int SetMouseCursor(
[InAttribute] unsigned int dwReserved
)
abstract SetMouseCursor :
dwReserved:uint32 -> int
function SetMouseCursor(
dwReserved : uint
) : int
參數
dwReserved
類型:UInt32[in]目前未使用。)
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsMouseCursorProvider::SetMouseCursor(
[in] DWORD dwReserved
);
當環境會在您的文字標記用戶端物件上呼叫這個方法時,呼叫SetCursor以設定滑鼠游標。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。