IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) Metoda
Definicja
Wywołuje się, gdy wywoływana jest jedna z symboli (klawisze dostępu) dla tego ujścia.Called when one of the mnemonics (access keys) for this sink is invoked.
public:
bool OnMnemonic(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
public bool OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[System.Security.SecurityCritical]
public bool OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
abstract member OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
[<System.Security.SecurityCritical>]
abstract member OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
Public Function OnMnemonic (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean
Parametry
- msg
- MSG
Komunikat dla elementu i skojarzonych danych.The message for the mnemonic and associated data. Nie należy modyfikować tej struktury wiadomości.Do not modify this message structure. Jest ona przesyłana przez odwołanie wyłącznie do powodów związanych z wydajnością.It is passed by reference for performance reasons only.
- modifiers
- ModifierKeys
Klawisze modyfikujące.Modifier keys.
Zwraca
true
Jeśli komunikat został obsłużony; w przeciwnym razie false
.true
if the message was handled; otherwise, false
.
- Atrybuty
Uwagi
Microsoft WindowsMicrosoft WindowsKomunikat musi mieć WM_CHAR, WM_SYSCHAR, WM_DEADCHAR lub WM_SYSDEADCHAR.The Microsoft WindowsMicrosoft Windows message must be WM_CHAR, WM_SYSCHAR, WM_DEADCHAR or WM_SYSDEADCHAR.
Jeśli składnik zawiera składniki, komunikat musi zostać przesłany w implementacji przez wywołanie każdej metody zawartej składnika OnMnemonic .If the component has contained components, the message must be passed in your implementation by calling each contained component's OnMnemonic method.
Interfejs, który zwraca true
z, TranslateAccelerator nie wywoła metody OnMnemonic .An interface that returns true
from TranslateAccelerator will not call OnMnemonic. Implementacje mogą zdecydować się na wykonanie wszystkich konkretnych kombinacji klawiszy w TranslateChar . i obejście OnMnemonic .Implementations can choose to perform all specific key combination handling in TranslateChar.and bypass OnMnemonic.