HwndHost.IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) 方法

定义

有关此成员的说明,请参见 OnMnemonic(MSG, ModifierKeys)

C#
[System.Security.SecurityCritical]
bool IKeyboardInputSink.OnMnemonic(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
C#
bool IKeyboardInputSink.OnMnemonic(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);

参数

msg
MSG

助记键和关联数据的消息。 请勿修改此消息结构。 仅由于性能原因,通过引用来传递此消息。

modifiers
ModifierKeys

修改键。

返回

如果消息已处理,则为 true;否则为 false

实现

属性

注解

此成员是显式接口成员的实现。 它只能在 HwndHost 实例被强制转换为 IKeyboardInputSink 接口时使用。

适用于

产品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10