49 references to WM_CHAR
System.Private.Windows.Core (1)
Windows\Win32\MessageId.cs (1)
136
PInvokeCore.
WM_CHAR
=> "WM_CHAR",
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1852
case PInvokeCore.
WM_CHAR
:
System\Windows\Forms\Application.ThreadContext.cs (1)
919
if (msg.message == PInvokeCore.
WM_CHAR
)
System\Windows\Forms\Control.cs (7)
8661
else if (msg.MsgInternal == PInvokeCore.
WM_CHAR
|| msg.MsgInternal == PInvokeCore.WM_SYSCHAR)
8663
if (msg.MsgInternal == PInvokeCore.
WM_CHAR
&& IsInputChar((char)(nint)msg.WParamInternal))
8744
else if (message.MsgInternal == PInvokeCore.
WM_CHAR
|| message.MsgInternal == PInvokeCore.WM_SYSCHAR)
8925
if (m.MsgInternal == PInvokeCore.
WM_CHAR
|| m.MsgInternal == PInvokeCore.WM_SYSCHAR)
8979
RemovePendingMessages(PInvokeCore.
WM_CHAR
, PInvokeCore.
WM_CHAR
);
12393
case PInvokeCore.
WM_CHAR
:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1399
case PInvokeCore.
WM_CHAR
:
2034
else if (m.MsgInternal == PInvokeCore.
WM_CHAR
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
21917
&& (m.MsgInternal == PInvokeCore.WM_SYSCHAR || m.MsgInternal == PInvokeCore.
WM_CHAR
|| m.MsgInternal == PInvokeCore.WM_IME_CHAR))
21940
dataGridViewWantsInputKey = m.MsgInternal == PInvokeCore.
WM_CHAR
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (2)
254
if (m.MsgInternal == PInvokeCore.
WM_CHAR
266
if (m.MsgInternal == PInvokeCore.
WM_CHAR
&& ModifierKeys == Keys.Control && Multiline && AcceptsReturn)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
96
PInvokeCore.PostMessage(this, PInvokeCore.
WM_CHAR
, (WPARAM)keyChar);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2452
if (m.Msg == PInvokeCore.
WM_CHAR
&& ImeWmCharsToIgnore > 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
619
case PInvokeCore.
WM_CHAR
:
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
165
if (lpMsg->message != PInvokeCore.
WM_CHAR
&& Enum.IsDefined((Shortcut)keyCode))
System\Windows\Forms\SendKeys\SendKeys.cs (2)
167
AddEvent(new SKEvent(PInvokeCore.
WM_CHAR
, character, (oemVal & 0xFFFF), hwnd));
679
if (skEvent.WM == PInvokeCore.
WM_CHAR
)
System.Windows.Forms.Design (5)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (2)
75
case PInvokeCore.
WM_CHAR
:
98
PInvokeCore.SendMessage(hwnd, PInvokeCore.
WM_CHAR
, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Design\PbrsForward.cs (3)
101
if (bk.KeyChar.MsgInternal == PInvokeCore.
WM_CHAR
)
108
PInvokeCore.SendMessage(hwnd, PInvokeCore.
WM_CHAR
, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal);
133
case (int)PInvokeCore.
WM_CHAR
:
System.Windows.Forms.Tests (22)
System\Windows\Forms\ControlTests.Methods.cs (16)
5302
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, true };
5303
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, true };
5304
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.Tab, true };
5305
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.Menu, true };
5306
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.F10, true };
5382
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, true, false, false, 0, 0, 0, 1, 0 };
5383
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, true, true, false, 0, 0, 0, 1, 0 };
5384
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, false, true, true, 0, 0, 0, 1, 1 };
5385
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, false, false, false, 0, 0, 0, 1, 1 };
5386
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, true, false, false, 0, 0, 0, 1, 0 };
5387
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, true, true, false, 0, 0, 0, 1, 0 };
5388
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, false, true, true, 0, 0, 0, 1, 1 };
5389
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, false, false, false, 0, 0, 0, 1, 1 };
5662
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, '2', handled, 1, 0, 0, (IntPtr)50 };
5663
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, '1', handled, 1, 0, 0, (IntPtr)49 };
5825
[InlineData((int)PInvokeCore.
WM_CHAR
)]
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (5)
1522
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, wParam, '2', handled, handled, 1, 0, 0, (IntPtr)50 };
1523
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, wParam, '1', handled, handled, 1, 0, 0, (IntPtr)49 };
1537
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, (IntPtr)Keys.Enter, '2', handled, true, 0, 0, 0, (IntPtr)Keys.Enter };
1538
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, (IntPtr)Keys.Enter, '1', handled, true, 0, 0, 0, (IntPtr)Keys.Enter };
1691
[InlineData((int)PInvokeCore.
WM_CHAR
)]
System\Windows\Forms\MessageTests.cs (1)
312
yield return new object[] { PInvokeCore.
WM_CHAR
, " (WM_CHAR)" };