共用方式為


IVsDocOutlineProvider2.TranslateAccelerator Method

Processes a Windows message related to accelerator keys.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣告
Function TranslateAccelerator ( _
    lpMsg As MSG() _
) As Integer
'用途
Dim instance As IVsDocOutlineProvider2
Dim lpMsg As MSG()
Dim returnValue As Integer

returnValue = instance.TranslateAccelerator(lpMsg)
int TranslateAccelerator(
    MSG[] lpMsg
)
int TranslateAccelerator(
    [InAttribute] array<MSG>^ lpMsg
)
abstract TranslateAccelerator : 
        lpMsg:MSG[] -> int 
function TranslateAccelerator(
    lpMsg : MSG[]
) : int

Parameters

Return Value

Type: System.Int32
When implementing, return S_OK if the message was processed and requires no further translation; otherwise, return S_FALSE if you want the shell to translate the message.

.NET Framework Security

See Also

Reference

IVsDocOutlineProvider2 Interface

IVsDocOutlineProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace