HwndSource.OnMnemonicCore(MSG, ModifierKeys) 方法

定义

调用此接收器的助记键(访问键)之一时调用。

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

参数

msg
MSG

助记键和关联数据的消息。

modifiers
ModifierKeys

修改键。

返回

Boolean

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

属性

例外

msg 不是 WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR 或 WM_DEADCHAR。

适用于

另请参阅