語言

IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) 方法

定義

在呼叫輸入訊息之前 OnMnemonic(MSG, ModifierKeys) ,程序WM_CHAR、WM_SYSCHAR、WM_DEADCHAR 和 WM_SYSDEADCHAR。

public:
 bool TranslateChar(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
[System.Security.SecurityCritical]
public bool TranslateChar(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
public bool TranslateChar(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
abstract member TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
Public Function TranslateChar (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

參數

msg
MSG

訊息與相關資料。 請勿修改此結構。 僅因績效考量而通過推薦。

modifiers
ModifierKeys

修飾鍵。

傳回

true 如果訊息已處理且 OnMnemonic(MSG, ModifierKeys) 不應被呼叫;否則, false。

屬性

備註

如果你實作此方法回傳 true,輸入架構將不會呼叫 OnMnemonic 該金鑰訊息。

適用於