IInputPreTranslateKeyboardSourceHandler::OnTreeMessage method (microsoft.ui.input.inputpretranslatesource.interop.h)
Handles keyboard input messages for pre-translate processing on elements without current focus.
Syntax
HRESULT OnTreeMessage(
[in] IInputPreTranslateKeyboardSourceInterop *source,
[in] const MSG *msg,
[in] UINT keyboardModifiers,
[in, out] bool *handled
);
Parameters
[in] source
The keyboard input source.
[in] msg
The keyboard input message.
[in] keyboardModifiers
The collection of keyboard modifiers.
These are are a combination of flags that can hold the following values:
FVIRTKEY 0x0001 Message is WM_(SYS)KEYDOWN or WM_(SYS)KEYUP. FSHIFT 0x0004 VK_SHIFT is pressed. FCONTROL 0x0008 VK_CONTROL is pressed (or VK_RCONTROL when the AltGr key is present and pressed). FALT 0x0010 VK_MENU is pressed (or VK_LMENU when the AltGr key is present and pressed).
[in, out] handled
True, if message handled. Otherwise, false.
Return value
This function has no return value.
Requirements
Requirement | Value |
---|---|
Header | microsoft.ui.input.inputpretranslatesource.interop.h |