語言

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

修飾鍵。

傳回

true如果訊息被處理;否則,。 false

屬性

例外狀況

msg 不是WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR或WM_DEADCHAR。

適用於

另請參閱