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)
331
bool success = PInvoke.SendMessageCallback(hwnd, PInvokeCore.WM_SYSCOLORCHANGE +
MessageId
.WM_REFLECT, () => complete = true);
784
message.MsgInternal = (
MessageId
)msg.message;
System\Windows\Forms\Control.cs (19)
150
private static
MessageId
s_threadCallbackMessage;
5852
internal virtual HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
9111
private void RemovePendingMessages(
MessageId
msgMin,
MessageId
msgMax)
9407
MessageId
.WM_REFLECT | m.MsgInternal,
11746
MessageId
.WM_REFLECT | m.MsgInternal,
11753
MessageId
.WM_REFLECT | m.MsgInternal,
11801
MessageId
.WM_REFLECT | m.MsgInternal,
12014
MessageId
msg = (
MessageId
)(uint)m.WParamInternal.LOWORD;
12409
case
MessageId
.WM_REFLECT_CTLCOLOR:
12410
case
MessageId
.WM_REFLECT_CTLCOLORBTN:
12411
case
MessageId
.WM_REFLECT_CTLCOLORDLG:
12412
case
MessageId
.WM_REFLECT_CTLCOLORMSGBOX:
12413
case
MessageId
.WM_REFLECT_CTLCOLORSCROLLBAR:
12414
case
MessageId
.WM_REFLECT_CTLCOLOREDIT:
12415
case
MessageId
.WM_REFLECT_CTLCOLORLISTBOX:
12416
case
MessageId
.WM_REFLECT_CTLCOLORSTATIC:
12538
case
MessageId
.WM_REFLECT_NOTIFYFORMAT:
System\Windows\Forms\Controls\Buttons\Button.cs (1)
335
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1421
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1990
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
3685
case
MessageId
.WM_REFLECT_COMMAND:
3688
case
MessageId
.WM_REFLECT_DRAWITEM:
3691
case
MessageId
.WM_REFLECT_MEASUREITEM:
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1563
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
935
case
MessageId
.WM_REFLECT_CHARTOITEM:
938
case
MessageId
.WM_REFLECT_VKEYTOITEM:
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
2403
case
MessageId
.WM_REFLECT_COMMAND:
2406
case
MessageId
.WM_REFLECT_DRAWITEM:
2409
case
MessageId
.WM_REFLECT_MEASUREITEM:
System\Windows\Forms\Controls\ListView\ListView.cs (2)
6415
private int UpdateGroupCollapse(
MessageId
clickType)
6985
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2207
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3448
case
MessageId
.WM_REFLECT_NOTIFY:
3452
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
64
private readonly
MessageId
_tabBaseReLayoutMessage = PInvoke.RegisterWindowMessage($"{Application.WindowMessagesVersion}{TabBaseReLayoutMessageName}");
2068
case
MessageId
.WM_REFLECT_DRAWITEM:
2072
case
MessageId
.WM_REFLECT_MEASUREITEM:
2077
case
MessageId
.WM_REFLECT_NOTIFY:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
2001
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg)
2094
case
MessageId
.WM_REFLECT_COMMAND:
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
1171
case
MessageId
.WM_REFLECT_HSCROLL:
1172
case
MessageId
.WM_REFLECT_VSCROLL:
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3242
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)
4736
msg.MsgInternal = (
MessageId
)win32Message.message;
System\Windows\Forms\Scrolling\ScrollBar.cs (3)
494
internal override HBRUSH InitializeDCForWmCtlColor(HDC dc,
MessageId
msg) => default;
724
case
MessageId
.WM_REFLECT_HSCROLL:
725
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);