IVsWindowPane.TranslateAccelerator Method
Handles the translation of special navigation keys.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
‘선언
Function TranslateAccelerator ( _
lpmsg As MSG() _
) As Integer
‘사용 방법
Dim instance As IVsWindowPane
Dim lpmsg As MSG()
Dim returnValue As Integer
returnValue = instance.TranslateAccelerator(lpmsg)
int TranslateAccelerator(
MSG[] lpmsg
)
int TranslateAccelerator(
array<MSG>^ lpmsg
)
abstract TranslateAccelerator :
lpmsg:MSG[] -> int
function TranslateAccelerator(
lpmsg : MSG[]
) : int
Parameters
- lpmsg
Type: array<Microsoft.VisualStudio.OLE.Interop.MSG[]
[in] Keyboard character or character combination to be handled.
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 vsshell.idl:
HRESULT IVsWindowPane::TranslateAccelerator(
LPMSG lpmsg
);
This method is identical to the TranslateAccelerator. This provides you the opportunity to handle keyboard messages before they are dispatched to the window that has focus. For example, your window might have controls where the TAB key navigates from one to the next. To handle the TAB key properly, you need to intercept it before it is dispatched to the window. Often, there is no requirement to implement this method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.