HwndSource.OnMnemonicCore(MSG, ModifierKeys) 方法

定義

當叫用這個接收的其中一個助憶鍵 (便捷鍵 (Access Key)) 時呼叫。

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

輔助按鍵 (Modifier Key)。

傳回

如果已處理訊息,則為 true;否則為 false

屬性

例外狀況

msg 並非 WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR 或 WM_DEADCHAR。

適用於

另請參閱