interop::ContentPreTranslateMessage function (microsoft.ui.dispatching.interop.h)

Filters window messages before they are dispatched to the TranslateMessage and DispatchMessage functions.

Syntax

BOOL ContentPreTranslateMessage(
  const MSG *pmsg
);

Parameters

pmsg

A pointer to an MSG structure that contains the message to process.

Return value

True, if the message was fully processed by this function and should not be processed further. Otherwise, false if the message should go through standard processing.

Remarks

Often used to intercept and process keyboard accelerators and focus navigation messages returned by the GetMessage function before the messages are sent to a specific HWND WNDPROC.

Requirements

Requirement Value
Header microsoft.ui.dispatching.interop.h

See also

microsoft.ui.input.inputpretranslatesource.interop header, Simple Island App