This documentation is archived and is not being maintained.

IVsMenuEditor.TranslateAccelerator Method

Allows the edit control to catch keystrokes just like an ActiveX control.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int TranslateAccelerator (
	[InAttribute] MSG[] lpmsg
)
int TranslateAccelerator (
	/** @attribute InAttribute() */ MSG[] lpmsg
)
function TranslateAccelerator (
	lpmsg : MSG[]
) : int

Parameters

lpmsg

[in]

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

C++

From vsshell.idl:

HRESULT IVsMenuEditor::TranslateAccelerator([in]LPMSG lpMsg);

Show: