HwndHost.IKeyboardInputSink.TranslateAccelerator(MSG, ModifierKeys) HwndHost.IKeyboardInputSink.TranslateAccelerator(MSG, ModifierKeys) HwndHost.IKeyboardInputSink.TranslateAccelerator(MSG, ModifierKeys) Method

定義

如需這個成員的說明,請參閱 TranslateAccelerator(MSG, ModifierKeys)For a description of this member, see TranslateAccelerator(MSG, ModifierKeys).

 virtual bool System.Windows.Interop.IKeyboardInputSink.TranslateAccelerator(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers) = System::Windows::Interop::IKeyboardInputSink::TranslateAccelerator;
[System.Security.SecurityCritical]
bool IKeyboardInputSink.TranslateAccelerator (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
Function TranslateAccelerator (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean Implements IKeyboardInputSink.TranslateAccelerator

參數

msg
MSG MSG MSG

訊息和相關聯的資料。The message and associated data. 請勿修改此結構。Do not modify this structure. 它僅基於效能的參考方式傳遞。It is passed by reference for performance reasons only.

modifiers
ModifierKeys ModifierKeys ModifierKeys

輔助按鍵。Modifier keys.

傳回

true 如果訊息已處理由方法實作;否則, falsetrue if the message was handled by the method implementation; otherwise, false.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 HwndHost 執行個體轉換成 IKeyboardInputSink 介面時,才能使用這個成員。It can be used only when the HwndHost instance is cast to an IKeyboardInputSink interface.

安全性

SecurityPermission
呼叫這個方法。to call this method. 相關聯的列舉型別: UnmanagedCodeAssociated enumeration: UnmanagedCode

適用於