IVsUIShell::TranslateAcceleratorAsACmd Method (array<MSG>^)
Visual Studio 2015
Causes the environment to use the active key binding table to convert, if possible, a keyboard message into the appropriate command, then route the command using the usual command routing mechanism.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pMsg
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::MSG>^
[in] Pointer to a message structure.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIShell::TranslateAcceleratorAsACmd(
[in] LPMSG pMsg
);
This method is intended to be called by in-place components in their implementation of TranslateCntrAccelerator. This makes it possible for the in-place component to give priority for keystrokes to the usual command bindings of the environment before making it possible for them to be handled by a nested OLE object.
Show: