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

定義

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

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

參數

msg
MSG MSG MSG

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

modifiers
ModifierKeys ModifierKeys ModifierKeys

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

傳回

如果已處理訊息則為 true,此時不應呼叫 OnMnemonic(MSG, ModifierKeys),否則為 falsetrue if the message was processed and OnMnemonic(MSG, ModifierKeys) should not be called; 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.

適用於