語言

HwndSource.TranslateCharCore(MSG, ModifierKeys) 方法

定義

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

protected:
 virtual bool TranslateCharCore(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
[System.Security.SecurityCritical]
protected virtual bool TranslateCharCore(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
protected virtual bool TranslateCharCore(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
abstract member TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
override this.TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
override this.TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
Protected Overridable Function TranslateCharCore (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

參數

msg
MSG

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

modifiers
ModifierKeys

修飾鍵。

傳回

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

屬性

適用於