HwndSource.TranslateCharCore(MSG, ModifierKeys) 方法

定義

先處理 WM_CHAR、WM_SYSCHAR、WM_DEADCHAR 和 WM_SYSDEADCHAR 輸入訊息,接著呼叫 OnMnemonic(MSG, ModifierKeys) 方法。

protected:
 virtual bool TranslateCharCore(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
[System.Security.SecurityCritical]
protected virtual bool TranslateCharCore (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
protected virtual bool TranslateCharCore (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
abstract member TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
override this.TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
override this.TranslateCharCore : MSG * System.Windows.Input.ModifierKeys -> bool
Protected Overridable Function TranslateCharCore (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

參數

msg
MSG

訊息及相關聯資料。 請勿修改這個結構。 參考僅基於效能考量而傳送它。

modifiers
ModifierKeys

輔助按鍵 (Modifier Key)。

傳回

Boolean

如果已處理訊息則為 true,此時不應呼叫 OnMnemonic(MSG, ModifierKeys),否則為 false

屬性

適用於