This topic has not yet been rated - Rate this topic

IOleInPlaceComponent.TranslateCntrAccelerator Method

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

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

int TranslateCntrAccelerator (
	[InAttribute] MSG[] pMsg
)
int TranslateCntrAccelerator (
	/** @attribute InAttribute() */ MSG[] pMsg
)
function TranslateCntrAccelerator (
	pMsg : MSG[]
) : int

Parameters

pMsg

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

Return Value

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

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.