IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) メソッド

定義

OnMnemonic(MSG, ModifierKeys)が呼び出される前に、入力メッセージのWM_CHAR、WM_SYSCHAR、WM_DEADCHAR、およびWM_SYSDEADCHARを処理します。

public:
 bool TranslateChar(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
[System.Security.SecurityCritical]
public bool TranslateChar(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
public bool TranslateChar(ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
abstract member TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
Public Function TranslateChar (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

パラメーター

msg
MSG

メッセージと関連するデータ。 この構造体は変更しないでください。 これは、パフォーマンス上の理由だけで参照渡しされます。

modifiers
ModifierKeys

修飾子キー。

返品

true メッセージが処理され、 OnMnemonic(MSG, ModifierKeys) を呼び出す必要がない場合は false。それ以外の場合は。

属性

注釈

trueを返すためにこのメソッドを実装した場合、入力アーキテクチャはそのキー メッセージのOnMnemonicを呼び出しません。

適用対象