IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) Method

定義

請先處理 WM_CHAR、WM_SYSCHAR、WM_DEADCHAR 和 WM_SYSDEADCHAR 輸入訊息,然後再呼叫 OnMnemonic(MSG, ModifierKeys)Processes WM_CHAR, WM_SYSCHAR, WM_DEADCHAR, and WM_SYSDEADCHAR input messages before OnMnemonic(MSG, ModifierKeys) is called.

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);
abstract member TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
Public Function TranslateChar (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

參數

msg
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 ModifierKeys

輔助按鍵 (Modifier Key)。Modifier keys.

傳回

如果已處理訊息則為 true,此時不應呼叫 OnMnemonic(MSG, ModifierKeys),否則為 falsetrue if the message was processed and OnMnemonic(MSG, ModifierKeys) should not be called; otherwise, false.

備註

如果您執行這個方法true傳回,則輸入架構不會呼叫OnMnemonic該金鑰訊息。If you implement this method to return true, the input architecture will not call OnMnemonic for that key message.

適用於