다음을 통해 공유


IOleInPlaceComponent.TranslateCntrAccelerator Method

Requests that an in-place VSPackage object translate a command accelerator.

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

Syntax

‘선언
Function TranslateCntrAccelerator ( _
    pMsg As MSG() _
) As Integer
‘사용 방법
Dim instance As IOleInPlaceComponent
Dim pMsg As MSG()
Dim returnValue As Integer

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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From oleipc.idl:

HRESULT IOleInPlaceComponent::TranslateCntrAccelerator([in] MSG *pMsg);

The TranslateCntrAccelerator method is called after the UI active object has determined that it cannot handle a command accelerator.

The TranslateCntrAccelerator method has semantics similar to TranslateAccelerator; therefore, VSPackages can implement TranslateCntrAccelerator by wrapping the call to the Window's TranslateAccelerator function.

.NET Framework Security

See Also

Reference

IOleInPlaceComponent Interface

IOleInPlaceComponent Members

Microsoft.VisualStudio.Shell.Interop Namespace