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)
8664
else if (msg.MsgInternal == PInvokeCore.
WM_CHAR
|| msg.MsgInternal == PInvokeCore.WM_SYSCHAR)
8666
if (msg.MsgInternal == PInvokeCore.
WM_CHAR
&& IsInputChar((char)(nint)msg.WParamInternal))
8747
else if (message.MsgInternal == PInvokeCore.
WM_CHAR
|| message.MsgInternal == PInvokeCore.WM_SYSCHAR)
8928
if (m.MsgInternal == PInvokeCore.
WM_CHAR
|| m.MsgInternal == PInvokeCore.WM_SYSCHAR)
8982
RemovePendingMessages(PInvokeCore.
WM_CHAR
, PInvokeCore.
WM_CHAR
);
12396
case PInvokeCore.
WM_CHAR
:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1408
case PInvokeCore.
WM_CHAR
:
2047
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)
628
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)
5289
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, true };
5290
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, true };
5291
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.Tab, true };
5292
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.Menu, true };
5293
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.F10, true };
5369
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, true, false, false, 0, 0, 0, 1, 0 };
5370
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, true, true, false, 0, 0, 0, 1, 0 };
5371
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, false, true, true, 0, 0, 0, 1, 1 };
5372
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.None, false, false, false, false, false, false, 0, 0, 0, 1, 1 };
5373
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, true, false, false, 0, 0, 0, 1, 0 };
5374
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, true, true, false, 0, 0, 0, 1, 0 };
5375
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, false, true, true, 0, 0, 0, 1, 1 };
5376
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, Keys.A, false, false, false, false, false, false, 0, 0, 0, 1, 1 };
5649
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, '2', handled, 1, 0, 0, (IntPtr)50 };
5650
yield return new object[] { (int)PInvokeCore.
WM_CHAR
, '1', handled, 1, 0, 0, (IntPtr)49 };
5812
[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)" };