Partager via


IOleInPlaceComponent.TranslateCntrAccelerator(MSG[]) Method

Definition

Requests that an in-place VSPackage object translate a command accelerator.

public:
 int TranslateCntrAccelerator(cli::array <Microsoft::VisualStudio::OLE::Interop::MSG> ^ pMsg);
int TranslateCntrAccelerator(std::Array <Microsoft::VisualStudio::OLE::Interop::MSG> const & pMsg);
public int TranslateCntrAccelerator (Microsoft.VisualStudio.OLE.Interop.MSG[] pMsg);
abstract member TranslateCntrAccelerator : Microsoft.VisualStudio.OLE.Interop.MSG[] -> int
Public Function TranslateCntrAccelerator (pMsg As MSG()) As Integer

Parameters

pMsg
MSG[]

[in] Pointer to the keyboard message to be handled as a command accelerator.

Returns

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

Remarks

COM Signature

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.

Applies to