IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Processes WM_CHAR, WM_SYSCHAR, WM_DEADCHAR, and WM_SYSDEADCHAR input messages before OnMnemonic(MSG, ModifierKeys) is called.
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
Parameters
- msg
- MSG
The message and associated data. Do not modify this structure. It is passed by reference for performance reasons only.
- modifiers
- ModifierKeys
Modifier keys.
Returns
true
if the message was processed and OnMnemonic(MSG, ModifierKeys) should not be called; otherwise, false
.
- Attributes
Remarks
If you implement this method to return true
, the input architecture will not call OnMnemonic for that key message.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor