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