次の方法で共有


IVsMenuEditor.TranslateAccelerator(MSG[]) Method

Definition

Allows the edit control to catch keystrokes just like an ActiveX control.

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

Parameters

lpmsg
MSG[]

[in] Pointer to an MSG structure that receives message information.

Returns

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

Remarks

C++

From vsshell.idl:

HRESULT IVsMenuEditor::TranslateAccelerator([in]LPMSG lpMsg);

Applies to