IOleInPlaceComponent::TranslateCntrAccelerator Method (array<MSG>^)
Visual Studio 2015
Requests that an in-place VSPackage object translate a command accelerator.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pMsg
-
Type:
array<Microsoft.VisualStudio.OLE.Interop::MSG>^
[in] Pointer to the keyboard message to be handled as a command accelerator.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: