2 instantiations of MessageId
System.Private.Windows.Core (2)
Windows\Win32\MessageId.cs (2)
16
public static explicit operator MessageId(int id) =>
new
((uint)id);
18
public static implicit operator MessageId(uint id) =>
new
(id);
164 references to MessageId
System.Private.Windows.Core (11)
Windows\Win32\MessageId.cs (5)
15
public static explicit operator int(
MessageId
id) => (int)id._id;
16
public static explicit operator
MessageId
(int id) => new((uint)id);
17
public static implicit operator uint(
MessageId
id) => id._id;
18
public static implicit operator
MessageId
(uint id) => new(id);
328
string subtext = ((
MessageId
)(_id - WM_REFLECT)).MessageIdToString() ?? "???";
Windows\Win32\PInvokeCore.PostMessage.cs (1)
11
MessageId
Msg,
Windows\Win32\PInvokeCore.SendMessage.cs (5)
11
MessageId
Msg,
23
MessageId
Msg,
35
MessageId
Msg,
48
MessageId
Msg,
63
MessageId
Msg,
System.Windows.Forms (62)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1700
msg.MsgInternal = (
MessageId
)win32Message.message;
3057
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
3077
case
MessageId
.WM_REFLECT_NOTIFYFORMAT:
System\Windows\Forms\Application.cs (2)
368
bool success = PInvoke.SendMessageCallback(hwnd, PInvokeCore.WM_SYSCOLORCHANGE +
MessageId
.WM_REFLECT, () => complete = true);
820
message.MsgInternal = (
MessageId
)msg.message;
System\Windows\Forms\Control.cs (19)
150
private static
MessageId
s_threadCallbackMessage;
5873
internal virtual HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
9130
private void RemovePendingMessages(
MessageId
msgMin,
MessageId
msgMax)
9425
MessageId
.WM_REFLECT | m.MsgInternal,
11762
MessageId
.WM_REFLECT | m.MsgInternal,
11769
MessageId
.WM_REFLECT | m.MsgInternal,
11817
MessageId
.WM_REFLECT | m.MsgInternal,
12030
MessageId
msg = (
MessageId
)(uint)m.WParamInternal.LOWORD;
12425
case
MessageId
.WM_REFLECT_CTLCOLOR:
12426
case
MessageId
.WM_REFLECT_CTLCOLORBTN:
12427
case
MessageId
.WM_REFLECT_CTLCOLORDLG:
12428
case
MessageId
.WM_REFLECT_CTLCOLORMSGBOX:
12429
case
MessageId
.WM_REFLECT_CTLCOLORSCROLLBAR:
12430
case
MessageId
.WM_REFLECT_CTLCOLOREDIT:
12431
case
MessageId
.WM_REFLECT_CTLCOLORLISTBOX:
12432
case
MessageId
.WM_REFLECT_CTLCOLORSTATIC:
12554
case
MessageId
.WM_REFLECT_NOTIFYFORMAT:
System\Windows\Forms\Controls\Buttons\Button.cs (1)
334
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1424
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
2001
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
3724
case
MessageId
.WM_REFLECT_COMMAND:
3727
case
MessageId
.WM_REFLECT_DRAWITEM:
3730
case
MessageId
.WM_REFLECT_MEASUREITEM:
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1561
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
937
case
MessageId
.WM_REFLECT_CHARTOITEM:
940
case
MessageId
.WM_REFLECT_VKEYTOITEM:
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
2401
case
MessageId
.WM_REFLECT_COMMAND:
2404
case
MessageId
.WM_REFLECT_DRAWITEM:
2407
case
MessageId
.WM_REFLECT_MEASUREITEM:
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6405
private int UpdateGroupCollapse(
MessageId
clickType)
6972
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2201
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3465
case
MessageId
.WM_REFLECT_NOTIFY:
3469
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
64
private readonly
MessageId
_tabBaseReLayoutMessage = PInvoke.RegisterWindowMessage($"{Application.WindowMessagesVersion}{TabBaseReLayoutMessageName}");
2064
case
MessageId
.WM_REFLECT_DRAWITEM:
2068
case
MessageId
.WM_REFLECT_MEASUREITEM:
2073
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1994
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
2087
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
1169
case
MessageId
.WM_REFLECT_HSCROLL:
1170
case
MessageId
.WM_REFLECT_VSCROLL:
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3229
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
262
msg.MsgInternal = (
MessageId
)win32Message.message;
369
case
MessageId
.WM_REFLECT_NOTIFYFORMAT:
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
277
if (m.MsgInternal ==
MessageId
.WM_REFLECT_NOTIFY)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
18
private static
MessageId
s_helpMessage;
System\Windows\Forms\Form.cs (1)
4718
msg.MsgInternal = (
MessageId
)win32Message.message;
System\Windows\Forms\Scrolling\ScrollBar.cs (3)
492
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg) => default;
722
case
MessageId
.WM_REFLECT_HSCROLL:
723
case
MessageId
.WM_REFLECT_VSCROLL:
System\Windows\Forms\SendKeys\SendKeys.SKEvent.cs (3)
13
public readonly
MessageId
WM;
18
public SKEvent(
MessageId
wm, uint paramL, bool paramH, HWND hwnd)
26
public SKEvent(
MessageId
wm, uint paramL, uint paramH, HWND hwnd)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2273
case (int)(
MessageId
.WM_REFLECT_NOTIFY):
System.Windows.Forms.Design (19)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
203
case
MessageId
.WM_REFLECT_NOTIFY:
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
61
switch ((
MessageId
)msg)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (2)
99
if (ProcessMouseMessage(mhs->hwnd, (
MessageId
)(nuint)wparam, mhs->pt.X, mhs->pt.Y))
145
private bool ProcessMouseMessage(HWND hwnd,
MessageId
msg, int x, int y)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
51
private static
MessageId
WM_GETALLSNAPLINES { get; } = PInvoke.RegisterWindowMessage("WM_GETALLSNAPLINES");
52
private static
MessageId
WM_GETRECENTSNAPLINES { get; } = PInvoke.RegisterWindowMessage("WM_GETRECENTSNAPLINES");
System\Windows\Forms\Design\ControlDesigner.cs (1)
2320
private static bool IsMouseMessage(
MessageId
msg) =>
System\Windows\Forms\Design\DesignerFrame.cs (10)
192
(SCROLLBAR_COMMAND wScrollNotify,
MessageId
msg) = keycode switch
194
Keys.Up => (SCROLLBAR_COMMAND.SB_LINEUP, (
MessageId
)PInvokeCore.WM_VSCROLL),
195
Keys.Down => (SCROLLBAR_COMMAND.SB_LINEDOWN, (
MessageId
)PInvokeCore.WM_VSCROLL),
196
Keys.PageUp => (SCROLLBAR_COMMAND.SB_PAGEUP, (
MessageId
)PInvokeCore.WM_VSCROLL),
197
Keys.PageDown => (SCROLLBAR_COMMAND.SB_PAGEDOWN, (
MessageId
)PInvokeCore.WM_VSCROLL),
198
Keys.Home => (SCROLLBAR_COMMAND.SB_TOP, (
MessageId
)PInvokeCore.WM_VSCROLL),
199
Keys.End => (SCROLLBAR_COMMAND.SB_BOTTOM, (
MessageId
)PInvokeCore.WM_VSCROLL),
200
Keys.Left => (SCROLLBAR_COMMAND.SB_LINEUP, (
MessageId
)PInvokeCore.WM_HSCROLL),
201
Keys.Right => (SCROLLBAR_COMMAND.SB_LINEDOWN, (
MessageId
)PInvokeCore.WM_HSCROLL),
202
_ => ((SCROLLBAR_COMMAND)0, (
MessageId
)PInvokeCore.WM_NULL)
System\Windows\Forms\Design\ListViewDesigner.cs (1)
136
case (int)
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Design\PbrsForward.cs (1)
179
PInvokeCore.PostMessage(_target, (
MessageId
)WM_PRIVATE_POSTCHAR);
System.Windows.Forms.Primitives (13)
Interop\User32\WMExtensions.cs (4)
26
MessageId
firstMessage,
27
MessageId
secondMessage)
36
MessageId
firstMessage,
37
MessageId
secondMessage)
System\Windows\Forms\Internals\MessageDecoder.cs (2)
19
private static string ToString(HWND hwnd,
MessageId
messageId, WPARAM wparam, LPARAM lparam, LRESULT result)
28
lDescription = Parenthesize(((
MessageId
)(uint)wparam.LOWORD).MessageIdToString());
System\Windows\Forms\Message.cs (3)
21
internal
MessageId
MsgInternal;
31
set => MsgInternal = (
MessageId
)value;
97
internal static Message Create(HWND hWnd,
MessageId
msg, WPARAM wparam, LPARAM lparam)
Windows\Win32\Interop.RegisteredMessage.cs (2)
11
public static
MessageId
WM_MOUSEENTER
24
public static
MessageId
WM_UIUNSUBCLASS
Windows\Win32\PInvoke.SendMessageCallback.cs (1)
13
MessageId
Msg,
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
36
public LRESULT SendMessage(IHandle<HWND> sender,
MessageId
message, bool state = false)
System.Windows.Forms.Tests (53)
System\Windows\Forms\ButtonBaseTests.cs (2)
9138
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
9174
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
System\Windows\Forms\ButtonTests.cs (2)
3615
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
3652
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
System\Windows\Forms\CommonDialogTests.cs (2)
245
Assert.Equal(IntPtr.Zero, dialog.OwnerWndProc(IntPtr.Zero, (int)(
MessageId
)field.GetValue(null), IntPtr.Zero, IntPtr.Zero));
265
Assert.Equal(IntPtr.Zero, dialog.OwnerWndProc(IntPtr.Zero, (int)(
MessageId
)field.GetValue(null) + 1, IntPtr.Zero, IntPtr.Zero));
System\Windows\Forms\ListBoxTests.cs (1)
3327
PInvokeCore.SendMessage(control,
MessageId
.WM_REFLECT | PInvokeCore.WM_COMMAND, WPARAM.MAKEWPARAM(0, (int)PInvoke.LBN_SELCHANGE));
System\Windows\Forms\RichTextBoxTests.cs (12)
9955
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
9997
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
10063
Msg = (int)(
MessageId
.WM_REFLECT_COMMAND),
10106
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10134
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10187
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10233
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10269
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10308
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10370
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10421
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
10469
Msg = (int)(
MessageId
.WM_REFLECT_NOTIFY),
System\Windows\Forms\ScrollBarTests.cs (4)
2710
foreach (
MessageId
msg in new
MessageId
[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL,
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL })
TextBoxBaseTests.cs (2)
7550
Msg = (int)(
MessageId
.WM_REFLECT | PInvokeCore.WM_COMMAND),
7586
Msg = (int)(
MessageId
.WM_REFLECT | PInvokeCore.WM_COMMAND),
ThreadContextTests.cs (4)
34
MessageId
filterId = TestMessageId2;
54
MessageId
filterId = TestMessageId2;
74
MessageId
filterId2 = TestMessageId2;
80
MessageId
filterId3 = TestMessageId3;
TrackBarTests.cs (24)
3152
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, IntPtr.Zero };
3153
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(-1, int.MaxValue) };
3154
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(0, int.MaxValue) };
3155
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(1, int.MaxValue) };
3156
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(2, int.MaxValue) };
3157
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(3, int.MaxValue) };
3158
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(4, int.MaxValue) };
3159
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(5, int.MaxValue) };
3160
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(6, int.MaxValue) };
3161
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(7, int.MaxValue) };
3162
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(8, int.MaxValue) };
3163
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_HSCROLL, PARAM.FromLowHigh(9, int.MaxValue) };
3165
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, IntPtr.Zero };
3166
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(-1, int.MaxValue) };
3167
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(0, int.MaxValue) };
3168
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(1, int.MaxValue) };
3169
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(2, int.MaxValue) };
3170
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(3, int.MaxValue) };
3171
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(4, int.MaxValue) };
3172
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(5, int.MaxValue) };
3173
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(6, int.MaxValue) };
3174
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(7, int.MaxValue) };
3175
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(8, int.MaxValue) };
3176
yield return new object[] {
MessageId
.WM_REFLECT | PInvokeCore.WM_VSCROLL, PARAM.FromLowHigh(9, int.MaxValue) };
System.Windows.Forms.TestUtilities (3)
PropertyGridInternal\SubPropertyGrid.cs (1)
17
private static
MessageId
WM_DELAYEDEXECUTION { get; } = PInvoke.RegisterWindowMessage("WinFormsSubPropertyGridDelayedExecution");
SystemEventsHelper.cs (2)
33
MessageId
msg;
87
PInvokeCore.SendMessage(window, msg |
MessageId
.WM_REFLECT, wParam);
System.Windows.Forms.UI.IntegrationTests (3)
Dpi\DpiMessageHelper.cs (2)
8
public static void TriggerDpiMessage(
MessageId
message, Control control, int newDpi)
21
nint SendWmDpiChangedMessage(
MessageId
message)
MonthCalendarTests.cs (1)
75
PInvokeCore.SendMessage(calendar,
MessageId
.WM_REFLECT_NOTIFY, 0, ref lParam);