HwndHost.IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) HwndHost.IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) HwndHost.IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) Method

定義

如需這個成員的說明,請參閱 OnMnemonic(MSG, ModifierKeys)For a description of this member, see OnMnemonic(MSG, ModifierKeys).

 virtual bool System.Windows.Interop.IKeyboardInputSink.OnMnemonic(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers) = System::Windows::Interop::IKeyboardInputSink::OnMnemonic;
[System.Security.SecurityCritical]
bool IKeyboardInputSink.OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
Function OnMnemonic (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean Implements IKeyboardInputSink.OnMnemonic

參數

msg
MSG MSG MSG

助憶鍵及其相關聯資料的訊息。The message for the mnemonic and associated data. 請勿修改這個訊息結構。Do not modify this message structure. 參考僅基於效能考量而傳送它。It is passed by reference for performance reasons only.

modifiers
ModifierKeys ModifierKeys ModifierKeys

輔助按鍵 (Modifier Key)。Modifier keys.

傳回

如果已處理訊息,則為 true;否則為 falsetrue if the message was handled; otherwise, false.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 HwndHost 執行個體轉換成 IKeyboardInputSink 介面時,才能使用這個成員。It can be used only when the HwndHost instance is cast to an IKeyboardInputSink interface.

適用於