语言

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。

特性

适用于