Export (0) Print
Expand All

IKeyboardInputSink.TranslateChar Method

Processes WM_CHAR, WM_SYSCHAR, WM_DEADCHAR, and WM_SYSDEADCHAR input messages before OnMnemonic is called.

Namespace: System.Windows.Interop
Assembly: WindowsBase (in windowsbase.dll)

bool TranslateChar (
	MSG% msg, 
	ModifierKeys modifiers
)
boolean TranslateChar (
	/** @ref */ MSG msg, 
	ModifierKeys modifiers
)
You cannot use methods in XAML.

Parameters

msg

The message and associated data. Do not modify this structure. It is passed by reference for performance reasons only.

modifiers

Modifier keys.

Return Value

true if the message was processed and OnMnemonic should not be called; otherwise, false.

If you implement this method to return true, the input architecture will not call OnMnemonic for that key message.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft