IVsUIShell::TranslateAcceleratorAsACmd Method (array<MSG>^)

 

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.

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

int TranslateAcceleratorAsACmd(
	array<MSG>^ pMsg
)

Parameters

pMsg
Type: array<Microsoft.VisualStudio.OLE.Interop::MSG>^

[in] Pointer to a message structure.

Return Value

Type: System::Int32

If 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.

Return to top
Show: