4924 references to PInvokeCore
PresentationCore (4)
System\Windows\Ole\WpfOleServices.cs (4)
147
PInvokeCore
.ReleaseStgMedium(ref medium);
184
PInvokeCore
.OleGetClipboard(dataObject);
187
PInvokeCore
.OleSetClipboard(dataObject);
190
PInvokeCore
.OleFlushClipboard();
System.Drawing.Common.Tests (17)
Helpers.cs (4)
128
internal static Rectangle GetWindowDCRect(HDC hdc) => GetHWndRect(
PInvokeCore
.WindowFromDC(hdc));
137
PInvokeCore
.GetClientRect(hwnd, out RECT rect);
143
HMONITOR hmonitor =
PInvokeCore
.MonitorFromWindow(hwnd, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTOPRIMARY);
151
PInvokeCore
.GetMonitorInfo(hmonitor, ref info).Should().Be(BOOL.TRUE);
System\Drawing\GdiPlusHandlesTests.cs (3)
27
using GetDcScope hdc = new(
PInvokeCore
.GetForegroundWindow());
33
uint initialHandles =
PInvokeCore
.GetGuiResources(processHandle, GET_GUI_RESOURCES_FLAGS.GR_GDIOBJECTS);
41
uint finalHandles =
PInvokeCore
.GetGuiResources(processHandle, GET_GUI_RESOURCES_FLAGS.GR_GDIOBJECTS);
System\Drawing\GraphicsTests.cs (1)
211
yield return new object[] { (nint)
PInvokeCore
.GetForegroundWindow() };
System\Drawing\ImageTests.cs (6)
673
HDC hdc =
PInvokeCore
.CreateEnhMetaFile(HDC.Null, default, null, default(PCWSTR));
676
PInvokeCore
.Rectangle(hdc, 10, 10, 100, 100);
677
HENHMETAFILE hemf =
PInvokeCore
.CloseEnhMetaFile(hdc);
679
uint length =
PInvokeCore
.GetEnhMetaFileBits(hemf, 0, null);
681
length =
PInvokeCore
.GetEnhMetaFileBits(hemf, buffer);
682
PInvokeCore
.DeleteEnhMetaFile(hemf);
System\Drawing\Imaging\MetafileTests.cs (3)
1025
HDC hdc =
PInvokeCore
.CreateEnhMetaFile(HDC.Null, default, null, default(PCWSTR));
1030
PInvokeCore
.Rectangle(hdc, 10, 10, 100, 100);
1031
HENHMETAFILE hemf =
PInvokeCore
.CloseEnhMetaFile(hdc);
System.Private.Windows.Core (437)
System\IO\StreamExtensions.cs (4)
31
HGLOBAL freed =
PInvokeCore
.GlobalFree(hglobal);
39
hglobal =
PInvokeCore
.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE, (uint)size);
45
void* buffer =
PInvokeCore
.GlobalLock(hglobal);
59
PInvokeCore
.GlobalUnlock(hglobal);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (7)
78
pmedium->hGlobal =
PInvokeCore
.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE | GLOBAL_ALLOC_FLAGS.GMEM_ZEROINIT, 1);
88
PInvokeCore
.GlobalFree(pmedium->hGlobal);
143
PInvokeCore
.GlobalFree(pmedium->hGlobal);
369
int byteCount =
PInvokeCore
.WideCharToMultiByte(
PInvokeCore
.CP_ACP, 0, value, value.Length, null, 0, null, null);
377
PInvokeCore
.WideCharToMultiByte(
PInvokeCore
.CP_ACP, 0, value, value.Length, (PSTR)buffer.Pointer, byteCount, null, null);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (17)
141
void* buffer =
PInvokeCore
.GlobalLock(hglobal);
149
int size = (int)
PInvokeCore
.GlobalSize(hglobal);
166
PInvokeCore
.GlobalUnlock(hglobal);
174
void* buffer =
PInvokeCore
.GlobalLock(hglobal);
181
PInvokeCore
.GlobalUnlock(hglobal);
189
void* buffer =
PInvokeCore
.GlobalLock(hglobal);
192
int size = (int)
PInvokeCore
.GlobalSize(hglobal);
197
PInvokeCore
.GlobalUnlock(hglobal);
203
uint count =
PInvokeCore
.DragQueryFile(hdrop, iFile: 0xFFFFFFFF, lpszFile: null, cch: 0);
209
Span<char> fileName = stackalloc char[(int)
PInvokeCore
.MAX_PATH + 1];
216
uint charactersCopied =
PInvokeCore
.DragQueryFile(hdrop, i, buffer, (uint)fileName.Length);
339
PInvokeCore
.ReleaseStgMedium(ref medium);
377
hglobal =
PInvokeCore
.GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE | GLOBAL_ALLOC_FLAGS.GMEM_ZEROINIT, (uint)sstg.cbSize);
386
void* ptr =
PInvokeCore
.GlobalLock(hglobal);
388
PInvokeCore
.GlobalUnlock(hglobal);
396
PInvokeCore
.GlobalFree(hglobal);
399
PInvokeCore
.ReleaseStgMedium(ref medium);
System\Private\Windows\Ole\DataFormatNames.cs (3)
33
internal const string InkSerializedFormat =
PInvokeCore
.INK_SERIALIZED_FORMAT;
34
internal const string FileNameAnsi =
PInvokeCore
.CFSTR_FILENAMEA;
35
internal const string FileNameUnicode =
PInvokeCore
.CFSTR_FILENAME;
System\Private\Windows\Ole\DataFormatsCore.cs (2)
37
uint formatId =
PInvokeCore
.RegisterClipboardFormat(format);
97
int length =
PInvokeCore
.GetClipboardFormatName(shortId, pBuffer, 256);
System\Private\Windows\Ole\DragDropFormat.cs (3)
69
mediumDestination.hGlobal = (HGLOBAL)(nint)
PInvokeCore
.OleDuplicateData(
108
PInvokeCore
.ReleaseStgMedium(ref mediumDestination);
118
PInvokeCore
.ReleaseStgMedium(ref _medium);
System\Private\Windows\Ole\DragDropHelper.cs (23)
129
if (dataObject.GetDataPresent(
PInvokeCore
.CFSTR_INDRAGLOOP)
130
&& dataObject.GetData(
PInvokeCore
.CFSTR_INDRAGLOOP) is DragDropFormat dragDropFormat)
134
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
139
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
161
|| formatName.Equals(
PInvokeCore
.CFSTR_DROPDESCRIPTION)
162
|| formatName.Equals(
PInvokeCore
.CFSTR_INDRAGLOOP)
192
cfFormat = (ushort)(short)
PInvokeCore
.RegisterClipboardFormat(format),
203
hGlobal =
PInvokeCore
.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(BOOL))
211
void* basePtr =
PInvokeCore
.GlobalLock(medium.hGlobal);
214
PInvokeCore
.GlobalFree(medium.hGlobal);
219
PInvokeCore
.GlobalUnlock(medium.hGlobal);
278
crColorKey = (COLORREF)
PInvokeCore
.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW)
285
PInvokeCore
.DeleteObject(hbmpDragImage);
338
if (message.Length >= (int)
PInvokeCore
.MAX_PATH)
343
if (messageReplacementToken.Length >= (int)
PInvokeCore
.MAX_PATH)
350
cfFormat = (ushort)(short)
PInvokeCore
.RegisterClipboardFormat(
PInvokeCore
.CFSTR_DROPDESCRIPTION),
361
hGlobal =
PInvokeCore
.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(DROPDESCRIPTION))
369
void* basePtr =
PInvokeCore
.GlobalLock(medium.hGlobal);
372
PInvokeCore
.GlobalFree(medium.hGlobal);
380
PInvokeCore
.GlobalUnlock(medium.hGlobal);
406
SetBooleanFormat(dataObject,
PInvokeCore
.CFSTR_INDRAGLOOP, inDragLoop);
447
HRESULT hr =
PInvokeCore
.CoCreateInstance(
System\Private\Windows\Ole\IOleServices.cs (3)
78
/// <inheritdoc cref="
PInvokeCore
.OleGetClipboard(IDataObject**)"/>/>
81
/// <inheritdoc cref="
PInvokeCore
.OleSetClipboard(IDataObject*)"/>
84
/// <inheritdoc cref="
PInvokeCore
.OleFlushClipboard"/>
Windows\Win32\Foundation\COLORREF.cs (1)
10
/// Never convert native constants (such as <see cref="
PInvokeCore
.CLR_NONE"/> to <see cref="Color"/> or pass them through
Windows\Win32\Foundation\GlobalBuffer.cs (3)
26
_hglobal =
PInvokeCore
.GlobalReAlloc(
37
_pointer =
PInvokeCore
.GlobalLock(_hglobal);
57
PInvokeCore
.GlobalUnlock(_hglobal);
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (3)
9
/// Helper to scope lifetime of an HDC retrieved via <see cref="
PInvokeCore
.BeginPaint(HWND, out PAINTSTRUCT)"/>
31
HDC =
PInvokeCore
.BeginPaint(hwnd, out _paintStruct);
41
PInvokeCore
.EndPaint(HWND, _paintStruct);
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (6)
7
/// Helper to scope lifetime of a <see cref="Gdi.HBITMAP"/> created via <see cref="
PInvokeCore
.CreateBitmap"/>
25
/// Creates a bitmap using <see cref="
PInvokeCore
.CreateBitmap"/>
28
HBITMAP =
PInvokeCore
.CreateBitmap(nWidth, nHeight, nPlanes, nBitCount, lpvBits);
32
/// <see cref="
PInvokeCore
.CreateCompatibleBitmap(HDC, int, int)"/>
34
public CreateBitmapScope(HDC hdc, int cx, int cy) => HBITMAP =
PInvokeCore
.CreateCompatibleBitmap(hdc, cx, cy);
46
PInvokeCore
.DeleteObject(HBITMAP);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (4)
27
/// Creates a solid brush based on the <paramref name="color"/> using <see cref="
PInvokeCore
.CreateSolidBrush(COLORREF)"/>.
32
?
PInvokeCore
.GetSysColorBrush(color)
33
:
PInvokeCore
.CreateSolidBrush(color);
48
PInvokeCore
.DeleteObject(HBRUSH);
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (5)
25
/// Creates a compatible HDC for <paramref name="hdc"/> using <see cref="
PInvokeCore
.CreateCompatibleDC(HDC)"/>.
34
HDC =
PInvokeCore
.CreateCompatibleDC(hdc);
47
?
PInvokeCore
.CreateICW(driver, device, null, lpInitData)
48
:
PInvokeCore
.CreateDCW(driver, device, null, lpInitData);
63
PInvokeCore
.DeleteDC(HDC);
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (3)
27
/// <see cref="
PInvokeCore
.CreatePen(PEN_STYLE, int, COLORREF)" />.
30
HPEN =
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, width, color);
41
PInvokeCore
.DeleteObject(HPEN);
Windows\Win32\Graphics\Gdi\GetDcScope.cs (7)
7
/// Helper to scope lifetime of an <see cref="Gdi.HDC"/> retrieved via <see cref="
PInvokeCore
.GetDC(HWND)"/> and
8
/// <see cref="
PInvokeCore
.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any)
25
HDC =
PInvokeCore
.GetDC(hwnd);
29
/// Creates a <see cref="Gdi.HDC"/> using <see cref="
PInvokeCore
.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>.
43
HDC =
PInvokeCore
.GetDCEx(hwnd, hrgnClip, flags);
51
/// <see cref="
PInvokeCore
.CreateDCW(PCWSTR, PCWSTR, PCWSTR, DEVMODEW*)" /> is the
66
PInvokeCore
.ReleaseDC(HWND, HDC);
Windows\Win32\Graphics\Gdi\HBITMAP.cs (3)
12
PInvokeCore
.DeleteObject(this);
29
HBITMAP compatibleBitmap =
PInvokeCore
.CreateCompatibleBitmap(screenDC, width, height);
33
PInvokeCore
.BitBlt(
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
33
PInvokeCore
.DeleteDC(Handle);
Windows\Win32\Graphics\Gdi\HRGN.cs (2)
10
uint regionDataSize =
PInvokeCore
.GetRegionData(this, 0, lpRgnData: null);
20
if (
PInvokeCore
.GetRegionData(this, regionDataSize, (RGNDATA*)b) != regionDataSize)
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
32
PInvokeCore
.DeleteObject(HGDIOBJ);
Windows\Win32\Graphics\Gdi\RegionScope.cs (9)
26
/// Creates a region with the given rectangle via <see cref="
PInvokeCore
.CreateRectRgn(int, int, int, int)"/>.
29
Region =
PInvokeCore
.CreateRectRgn(rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
32
/// Creates a region with the given rectangle via <see cref="
PInvokeCore
.CreateRectRgn(int, int, int, int)"/>.
35
Region =
PInvokeCore
.CreateRectRgn(x1, y1, x2, y2);
38
/// Creates a clipping region copy via <see cref="
PInvokeCore
.GetClipRgn(HDC, HRGN)"/> for the given device context.
43
HRGN region =
PInvokeCore
.CreateRectRgn(0, 0, 0, 0);
44
int result =
PInvokeCore
.GetClipRgn(hdc, region);
54
PInvokeCore
.DeleteObject(region);
88
PInvokeCore
.DeleteObject(Region);
Windows\Win32\Graphics\Gdi\SaveDcScope.cs (3)
29
/// Saves the device context state using <see cref="
PInvokeCore
.SaveDC(HDC)"/>.
34
_savedState =
PInvokeCore
.SaveDC(hdc);
42
PInvokeCore
.RestoreDC(HDC, _savedState);
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (3)
27
/// <see cref="
PInvokeCore
.SelectObject(HDC, HGDIOBJ)"/>.
41
PreviousObject =
PInvokeCore
.SelectObject(hdc, @object);
49
PInvokeCore
.SelectObject(_hdc, PreviousObject);
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (3)
27
HPALETTE =
PInvokeCore
.SelectPalette(hdc, hpalette, forceBackground);
30
PInvokeCore
.RealizePalette(hdc);
40
PInvokeCore
.SelectPalette(HDC, HPALETTE, bForceBkgd: false);
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
23
/// <see cref="
PInvokeCore
.SetBkColor(HDC, COLORREF)"/>.
27
_previousColor =
PInvokeCore
.SetBkColor(hdc, color);
37
PInvokeCore
.SetBkColor(_hdc, _previousColor);
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (2)
30
_previousMode = (BACKGROUND_MODE)
PInvokeCore
.SetBkMode(hdc, bkmode);
40
PInvokeCore
.SetBkMode(_hdc, _previousMode);
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (3)
27
/// <see cref="
PInvokeCore
.SetMapMode(HDC, HDC_MAP_MODE)"/>.
31
_previousMapMode = (HDC_MAP_MODE)
PInvokeCore
.SetMapMode(hdc, mapMode);
41
PInvokeCore
.SetMapMode(_hdc, _previousMapMode);
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (3)
26
/// Selects <paramref name="rop2"/> into the given <paramref name="hdc"/> using <see cref="
PInvokeCore
.SetROP2(HDC, R2_MODE)"/>.
30
_previousRop = (R2_MODE)
PInvokeCore
.SetROP2(hdc, rop2);
40
PInvokeCore
.SetROP2(_hdc, _previousRop);
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (3)
27
/// using <see cref="
PInvokeCore
.SetTextAlign(HDC, TEXT_ALIGN_OPTIONS)"/>.
31
_previousTa = (TEXT_ALIGN_OPTIONS)
PInvokeCore
.SetTextAlign(hdc, ta);
41
PInvokeCore
.SetTextAlign(_hdc, _previousTa);
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
27
/// <see cref="
PInvokeCore
.SetTextColor(HDC, COLORREF)"/>.
31
_previousColor =
PInvokeCore
.SetTextColor(hdc, color);
41
PInvokeCore
.SetTextColor(_hdc, _previousColor);
Windows\Win32\Graphics\GdiPlus\GdiPlusInitialization.cs (2)
22
PInvokeCore
.GdiplusStartup(&token, (GdiplusStartupInput*)&startup, null).ThrowIfFailed();
31
/// This should be called anywhere you make <see cref="
PInvokeCore
"/> calls to GDI+ where you don't
Windows\Win32\MessageId.cs (281)
22
public const uint WM_REFLECT =
PInvokeCore
.WM_USER + 0x1C00;
23
public const uint WM_REFLECT_NOTIFY = WM_REFLECT +
PInvokeCore
.WM_NOTIFY;
24
public const uint WM_REFLECT_NOTIFYFORMAT = WM_REFLECT +
PInvokeCore
.WM_NOTIFYFORMAT;
25
public const uint WM_REFLECT_COMMAND = WM_REFLECT +
PInvokeCore
.WM_COMMAND;
26
public const uint WM_REFLECT_CHARTOITEM = WM_REFLECT +
PInvokeCore
.WM_CHARTOITEM;
27
public const uint WM_REFLECT_VKEYTOITEM = WM_REFLECT +
PInvokeCore
.WM_VKEYTOITEM;
28
public const uint WM_REFLECT_DRAWITEM = WM_REFLECT +
PInvokeCore
.WM_DRAWITEM;
29
public const uint WM_REFLECT_MEASUREITEM = WM_REFLECT +
PInvokeCore
.WM_MEASUREITEM;
30
public const uint WM_REFLECT_HSCROLL = WM_REFLECT +
PInvokeCore
.WM_HSCROLL;
31
public const uint WM_REFLECT_VSCROLL = WM_REFLECT +
PInvokeCore
.WM_VSCROLL;
32
public const uint WM_REFLECT_CTLCOLOR = WM_REFLECT +
PInvokeCore
.WM_CTLCOLOR;
33
public const uint WM_REFLECT_CTLCOLORBTN = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORBTN;
34
public const uint WM_REFLECT_CTLCOLORDLG = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORDLG;
35
public const uint WM_REFLECT_CTLCOLORMSGBOX = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORMSGBOX;
36
public const uint WM_REFLECT_CTLCOLORSCROLLBAR = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORSCROLLBAR;
37
public const uint WM_REFLECT_CTLCOLOREDIT = WM_REFLECT +
PInvokeCore
.WM_CTLCOLOREDIT;
38
public const uint WM_REFLECT_CTLCOLORLISTBOX = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORLISTBOX;
39
public const uint WM_REFLECT_CTLCOLORSTATIC = WM_REFLECT +
PInvokeCore
.WM_CTLCOLORSTATIC;
48
PInvokeCore
.WM_NULL => "WM_NULL",
49
PInvokeCore
.WM_CREATE => "WM_CREATE",
50
PInvokeCore
.WM_DESTROY => "WM_DESTROY",
51
PInvokeCore
.WM_MOVE => "WM_MOVE",
52
PInvokeCore
.WM_SIZE => "WM_SIZE",
53
PInvokeCore
.WM_ACTIVATE => "WM_ACTIVATE",
54
PInvokeCore
.WM_SETFOCUS => "WM_SETFOCUS",
55
PInvokeCore
.WM_KILLFOCUS => "WM_KILLFOCUS",
56
PInvokeCore
.WM_ENABLE => "WM_ENABLE",
57
PInvokeCore
.WM_SETREDRAW => "WM_SETREDRAW",
58
PInvokeCore
.WM_SETTEXT => "WM_SETTEXT",
59
PInvokeCore
.WM_GETTEXT => "WM_GETTEXT",
60
PInvokeCore
.WM_GETTEXTLENGTH => "WM_GETTEXTLENGTH",
61
PInvokeCore
.WM_PAINT => "WM_PAINT",
62
PInvokeCore
.WM_CLOSE => "WM_CLOSE",
63
PInvokeCore
.WM_QUERYENDSESSION => "WM_QUERYENDSESSION",
64
PInvokeCore
.WM_QUIT => "WM_QUIT",
65
PInvokeCore
.WM_QUERYOPEN => "WM_QUERYOPEN",
66
PInvokeCore
.WM_ERASEBKGND => "WM_ERASEBKGND",
67
PInvokeCore
.WM_SYSCOLORCHANGE => "WM_SYSCOLORCHANGE",
68
PInvokeCore
.WM_ENDSESSION => "WM_ENDSESSION",
69
PInvokeCore
.WM_SHOWWINDOW => "WM_SHOWWINDOW",
70
PInvokeCore
.WM_WININICHANGE => "WM_WININICHANGE",
71
PInvokeCore
.WM_DEVMODECHANGE => "WM_DEVMODECHANGE",
72
PInvokeCore
.WM_ACTIVATEAPP => "WM_ACTIVATEAPP",
73
PInvokeCore
.WM_FONTCHANGE => "WM_FONTCHANGE",
74
PInvokeCore
.WM_TIMECHANGE => "WM_TIMECHANGE",
75
PInvokeCore
.WM_CANCELMODE => "WM_CANCELMODE",
76
PInvokeCore
.WM_SETCURSOR => "WM_SETCURSOR",
77
PInvokeCore
.WM_MOUSEACTIVATE => "WM_MOUSEACTIVATE",
78
PInvokeCore
.WM_CHILDACTIVATE => "WM_CHILDACTIVATE",
79
PInvokeCore
.WM_QUEUESYNC => "WM_QUEUESYNC",
80
PInvokeCore
.WM_GETMINMAXINFO => "WM_GETMINMAXINFO",
81
PInvokeCore
.WM_PAINTICON => "WM_PAINTICON",
82
PInvokeCore
.WM_ICONERASEBKGND => "WM_ICONERASEBKGND",
83
PInvokeCore
.WM_NEXTDLGCTL => "WM_NEXTDLGCTL",
84
PInvokeCore
.WM_SPOOLERSTATUS => "WM_SPOOLERSTATUS",
85
PInvokeCore
.WM_DRAWITEM => "WM_DRAWITEM",
86
PInvokeCore
.WM_MEASUREITEM => "WM_MEASUREITEM",
87
PInvokeCore
.WM_DELETEITEM => "WM_DELETEITEM",
88
PInvokeCore
.WM_VKEYTOITEM => "WM_VKEYTOITEM",
89
PInvokeCore
.WM_CHARTOITEM => "WM_CHARTOITEM",
90
PInvokeCore
.WM_SETFONT => "WM_SETFONT",
91
PInvokeCore
.WM_GETFONT => "WM_GETFONT",
92
PInvokeCore
.WM_SETHOTKEY => "WM_SETHOTKEY",
93
PInvokeCore
.WM_GETHOTKEY => "WM_GETHOTKEY",
94
PInvokeCore
.WM_QUERYDRAGICON => "WM_QUERYDRAGICON",
95
PInvokeCore
.WM_COMPAREITEM => "WM_COMPAREITEM",
96
PInvokeCore
.WM_GETOBJECT => "WM_GETOBJECT",
97
PInvokeCore
.WM_COMPACTING => "WM_COMPACTING",
98
PInvokeCore
.WM_COMMNOTIFY => "WM_COMMNOTIFY",
99
PInvokeCore
.WM_WINDOWPOSCHANGING => "WM_WINDOWPOSCHANGING",
100
PInvokeCore
.WM_WINDOWPOSCHANGED => "WM_WINDOWPOSCHANGED",
101
PInvokeCore
.WM_POWER => "WM_POWER",
102
PInvokeCore
.WM_COPYDATA => "WM_COPYDATA",
103
PInvokeCore
.WM_CANCELJOURNAL => "WM_CANCELJOURNAL",
104
PInvokeCore
.WM_NOTIFY => "WM_NOTIFY",
105
PInvokeCore
.WM_INPUTLANGCHANGEREQUEST => "WM_INPUTLANGCHANGEREQUEST",
106
PInvokeCore
.WM_INPUTLANGCHANGE => "WM_INPUTLANGCHANGE",
107
PInvokeCore
.WM_TCARD => "WM_TCARD",
108
PInvokeCore
.WM_HELP => "WM_HELP",
109
PInvokeCore
.WM_USERCHANGED => "WM_USERCHANGED",
110
PInvokeCore
.WM_NOTIFYFORMAT => "WM_NOTIFYFORMAT",
111
PInvokeCore
.WM_CONTEXTMENU => "WM_CONTEXTMENU",
112
PInvokeCore
.WM_STYLECHANGING => "WM_STYLECHANGING",
113
PInvokeCore
.WM_STYLECHANGED => "WM_STYLECHANGED",
114
PInvokeCore
.WM_DISPLAYCHANGE => "WM_DISPLAYCHANGE",
115
PInvokeCore
.WM_GETICON => "WM_GETICON",
116
PInvokeCore
.WM_SETICON => "WM_SETICON",
117
PInvokeCore
.WM_NCCREATE => "WM_NCCREATE",
118
PInvokeCore
.WM_NCDESTROY => "WM_NCDESTROY",
119
PInvokeCore
.WM_NCCALCSIZE => "WM_NCCALCSIZE",
120
PInvokeCore
.WM_NCHITTEST => "WM_NCHITTEST",
121
PInvokeCore
.WM_NCPAINT => "WM_NCPAINT",
122
PInvokeCore
.WM_NCACTIVATE => "WM_NCACTIVATE",
123
PInvokeCore
.WM_GETDLGCODE => "WM_GETDLGCODE",
124
PInvokeCore
.WM_NCMOUSEMOVE => "WM_NCMOUSEMOVE",
125
PInvokeCore
.WM_NCLBUTTONDOWN => "WM_NCLBUTTONDOWN",
126
PInvokeCore
.WM_NCLBUTTONUP => "WM_NCLBUTTONUP",
127
PInvokeCore
.WM_NCLBUTTONDBLCLK => "WM_NCLBUTTONDBLCLK",
128
PInvokeCore
.WM_NCRBUTTONDOWN => "WM_NCRBUTTONDOWN",
129
PInvokeCore
.WM_NCRBUTTONUP => "WM_NCRBUTTONUP",
130
PInvokeCore
.WM_NCRBUTTONDBLCLK => "WM_NCRBUTTONDBLCLK",
131
PInvokeCore
.WM_NCMBUTTONDOWN => "WM_NCMBUTTONDOWN",
132
PInvokeCore
.WM_NCMBUTTONUP => "WM_NCMBUTTONUP",
133
PInvokeCore
.WM_NCMBUTTONDBLCLK => "WM_NCMBUTTONDBLCLK",
134
PInvokeCore
.WM_KEYDOWN => "WM_KEYDOWN",
135
PInvokeCore
.WM_KEYUP => "WM_KEYUP",
136
PInvokeCore
.WM_CHAR => "WM_CHAR",
137
PInvokeCore
.WM_DEADCHAR => "WM_DEADCHAR",
138
PInvokeCore
.WM_SYSKEYDOWN => "WM_SYSKEYDOWN",
139
PInvokeCore
.WM_SYSKEYUP => "WM_SYSKEYUP",
140
PInvokeCore
.WM_SYSCHAR => "WM_SYSCHAR",
141
PInvokeCore
.WM_SYSDEADCHAR => "WM_SYSDEADCHAR",
142
PInvokeCore
.WM_KEYLAST => "WM_KEYLAST",
143
PInvokeCore
.WM_IME_STARTCOMPOSITION => "WM_IME_STARTCOMPOSITION",
144
PInvokeCore
.WM_IME_ENDCOMPOSITION => "WM_IME_ENDCOMPOSITION",
145
PInvokeCore
.WM_IME_COMPOSITION => "WM_IME_COMPOSITION",
146
PInvokeCore
.WM_INITDIALOG => "WM_INITDIALOG",
147
PInvokeCore
.WM_COMMAND => "WM_COMMAND",
148
PInvokeCore
.WM_SYSCOMMAND => "WM_SYSCOMMAND",
149
PInvokeCore
.WM_TIMER => "WM_TIMER",
150
PInvokeCore
.WM_HSCROLL => "WM_HSCROLL",
151
PInvokeCore
.WM_VSCROLL => "WM_VSCROLL",
152
PInvokeCore
.WM_INITMENU => "WM_INITMENU",
153
PInvokeCore
.WM_INITMENUPOPUP => "WM_INITMENUPOPUP",
154
PInvokeCore
.WM_MENUSELECT => "WM_MENUSELECT",
155
PInvokeCore
.WM_MENUCHAR => "WM_MENUCHAR",
156
PInvokeCore
.WM_ENTERIDLE => "WM_ENTERIDLE",
157
PInvokeCore
.WM_CTLCOLORMSGBOX => "WM_CTLCOLORMSGBOX",
158
PInvokeCore
.WM_CTLCOLOREDIT => "WM_CTLCOLOREDIT",
159
PInvokeCore
.WM_CTLCOLORLISTBOX => "WM_CTLCOLORLISTBOX",
160
PInvokeCore
.WM_CTLCOLORBTN => "WM_CTLCOLORBTN",
161
PInvokeCore
.WM_CTLCOLORDLG => "WM_CTLCOLORDLG",
162
PInvokeCore
.WM_CTLCOLORSCROLLBAR => "WM_CTLCOLORSCROLLBAR",
163
PInvokeCore
.WM_CTLCOLORSTATIC => "WM_CTLCOLORSTATIC",
164
PInvokeCore
.WM_MOUSEMOVE => "WM_MOUSEMOVE",
165
PInvokeCore
.WM_LBUTTONDOWN => "WM_LBUTTONDOWN",
166
PInvokeCore
.WM_LBUTTONUP => "WM_LBUTTONUP",
167
PInvokeCore
.WM_LBUTTONDBLCLK => "WM_LBUTTONDBLCLK",
168
PInvokeCore
.WM_RBUTTONDOWN => "WM_RBUTTONDOWN",
169
PInvokeCore
.WM_RBUTTONUP => "WM_RBUTTONUP",
170
PInvokeCore
.WM_RBUTTONDBLCLK => "WM_RBUTTONDBLCLK",
171
PInvokeCore
.WM_MBUTTONDOWN => "WM_MBUTTONDOWN",
172
PInvokeCore
.WM_MBUTTONUP => "WM_MBUTTONUP",
173
PInvokeCore
.WM_MBUTTONDBLCLK => "WM_MBUTTONDBLCLK",
174
PInvokeCore
.WM_MOUSEWHEEL => "WM_MOUSEWHEEL",
175
PInvokeCore
.WM_PARENTNOTIFY => "WM_PARENTNOTIFY",
176
PInvokeCore
.WM_ENTERMENULOOP => "WM_ENTERMENULOOP",
177
PInvokeCore
.WM_EXITMENULOOP => "WM_EXITMENULOOP",
178
PInvokeCore
.WM_NEXTMENU => "WM_NEXTMENU",
179
PInvokeCore
.WM_SIZING => "WM_SIZING",
180
PInvokeCore
.WM_CAPTURECHANGED => "WM_CAPTURECHANGED",
181
PInvokeCore
.WM_MOVING => "WM_MOVING",
182
PInvokeCore
.WM_POWERBROADCAST => "WM_POWERBROADCAST",
183
PInvokeCore
.WM_DEVICECHANGE => "WM_DEVICECHANGE",
184
PInvokeCore
.WM_IME_SETCONTEXT => "WM_IME_SETCONTEXT",
185
PInvokeCore
.WM_IME_NOTIFY => "WM_IME_NOTIFY",
186
PInvokeCore
.WM_IME_CONTROL => "WM_IME_CONTROL",
187
PInvokeCore
.WM_IME_COMPOSITIONFULL => "WM_IME_COMPOSITIONFULL",
188
PInvokeCore
.WM_IME_SELECT => "WM_IME_SELECT",
189
PInvokeCore
.WM_IME_CHAR => "WM_IME_CHAR",
190
PInvokeCore
.WM_IME_KEYDOWN => "WM_IME_KEYDOWN",
191
PInvokeCore
.WM_IME_KEYUP => "WM_IME_KEYUP",
192
PInvokeCore
.WM_MDICREATE => "WM_MDICREATE",
193
PInvokeCore
.WM_MDIDESTROY => "WM_MDIDESTROY",
194
PInvokeCore
.WM_MDIACTIVATE => "WM_MDIACTIVATE",
195
PInvokeCore
.WM_MDIRESTORE => "WM_MDIRESTORE",
196
PInvokeCore
.WM_MDINEXT => "WM_MDINEXT",
197
PInvokeCore
.WM_MDIMAXIMIZE => "WM_MDIMAXIMIZE",
198
PInvokeCore
.WM_MDITILE => "WM_MDITILE",
199
PInvokeCore
.WM_MDICASCADE => "WM_MDICASCADE",
200
PInvokeCore
.WM_MDIICONARRANGE => "WM_MDIICONARRANGE",
201
PInvokeCore
.WM_MDIGETACTIVE => "WM_MDIGETACTIVE",
202
PInvokeCore
.WM_MDISETMENU => "WM_MDISETMENU",
203
PInvokeCore
.WM_ENTERSIZEMOVE => "WM_ENTERSIZEMOVE",
204
PInvokeCore
.WM_EXITSIZEMOVE => "WM_EXITSIZEMOVE",
205
PInvokeCore
.WM_DROPFILES => "WM_DROPFILES",
206
PInvokeCore
.WM_MDIREFRESHMENU => "WM_MDIREFRESHMENU",
207
PInvokeCore
.WM_MOUSEHOVER => "WM_MOUSEHOVER",
208
PInvokeCore
.WM_MOUSELEAVE => "WM_MOUSELEAVE",
209
PInvokeCore
.WM_CUT => "WM_CUT",
210
PInvokeCore
.WM_COPY => "WM_COPY",
211
PInvokeCore
.WM_PASTE => "WM_PASTE",
212
PInvokeCore
.WM_CLEAR => "WM_CLEAR",
213
PInvokeCore
.WM_UNDO => "WM_UNDO",
214
PInvokeCore
.WM_RENDERFORMAT => "WM_RENDERFORMAT",
215
PInvokeCore
.WM_RENDERALLFORMATS => "WM_RENDERALLFORMATS",
216
PInvokeCore
.WM_DESTROYCLIPBOARD => "WM_DESTROYCLIPBOARD",
217
PInvokeCore
.WM_DRAWCLIPBOARD => "WM_DRAWCLIPBOARD",
218
PInvokeCore
.WM_PAINTCLIPBOARD => "WM_PAINTCLIPBOARD",
219
PInvokeCore
.WM_VSCROLLCLIPBOARD => "WM_VSCROLLCLIPBOARD",
220
PInvokeCore
.WM_SIZECLIPBOARD => "WM_SIZECLIPBOARD",
221
PInvokeCore
.WM_ASKCBFORMATNAME => "WM_ASKCBFORMATNAME",
222
PInvokeCore
.WM_CHANGECBCHAIN => "WM_CHANGECBCHAIN",
223
PInvokeCore
.WM_HSCROLLCLIPBOARD => "WM_HSCROLLCLIPBOARD",
224
PInvokeCore
.WM_QUERYNEWPALETTE => "WM_QUERYNEWPALETTE",
225
PInvokeCore
.WM_PALETTEISCHANGING => "WM_PALETTEISCHANGING",
226
PInvokeCore
.WM_PALETTECHANGED => "WM_PALETTECHANGED",
227
PInvokeCore
.WM_HOTKEY => "WM_HOTKEY",
228
PInvokeCore
.WM_PRINT => "WM_PRINT",
229
PInvokeCore
.WM_PRINTCLIENT => "WM_PRINTCLIENT",
230
PInvokeCore
.WM_HANDHELDFIRST => "WM_HANDHELDFIRST",
231
PInvokeCore
.WM_HANDHELDLAST => "WM_HANDHELDLAST",
232
PInvokeCore
.WM_AFXFIRST => "WM_AFXFIRST",
233
PInvokeCore
.WM_AFXLAST => "WM_AFXLAST",
234
PInvokeCore
.WM_PENWINFIRST => "WM_PENWINFIRST",
235
PInvokeCore
.WM_PENWINLAST => "WM_PENWINLAST",
236
PInvokeCore
.WM_APP => "WM_APP",
237
PInvokeCore
.WM_USER => "WM_USER",
238
PInvokeCore
.WM_CTLCOLOR => "WM_CTLCOLOR",
241
PInvokeCore
.EM_GETLIMITTEXT => "EM_GETLIMITTEXT",
242
PInvokeCore
.EM_POSFROMCHAR => "EM_POSFROMCHAR",
243
PInvokeCore
.EM_CHARFROMPOS => "EM_CHARFROMPOS",
244
PInvokeCore
.EM_SCROLLCARET => "EM_SCROLLCARET",
245
PInvokeCore
.EM_CANPASTE => "EM_CANPASTE",
246
PInvokeCore
.EM_DISPLAYBAND => "EM_DISPLAYBAND",
247
PInvokeCore
.EM_EXGETSEL => "EM_EXGETSEL",
248
PInvokeCore
.EM_EXLIMITTEXT => "EM_EXLIMITTEXT",
249
PInvokeCore
.EM_EXLINEFROMCHAR => "EM_EXLINEFROMCHAR",
250
PInvokeCore
.EM_EXSETSEL => "EM_EXSETSEL",
251
PInvokeCore
.EM_FINDTEXT => "EM_FINDTEXT",
252
PInvokeCore
.EM_FORMATRANGE => "EM_FORMATRANGE",
253
PInvokeCore
.EM_GETCHARFORMAT => "EM_GETCHARFORMAT",
254
PInvokeCore
.EM_GETEVENTMASK => "EM_GETEVENTMASK",
255
PInvokeCore
.EM_GETOLEINTERFACE => "EM_GETOLEINTERFACE",
256
PInvokeCore
.EM_GETPARAFORMAT => "EM_GETPARAFORMAT",
257
PInvokeCore
.EM_GETSELTEXT => "EM_GETSELTEXT",
258
PInvokeCore
.EM_HIDESELECTION => "EM_HIDESELECTION",
259
PInvokeCore
.EM_PASTESPECIAL => "EM_PASTESPECIAL",
260
PInvokeCore
.EM_REQUESTRESIZE => "EM_REQUESTRESIZE",
261
PInvokeCore
.EM_SELECTIONTYPE => "EM_SELECTIONTYPE",
262
PInvokeCore
.EM_SETBKGNDCOLOR => "EM_SETBKGNDCOLOR",
263
PInvokeCore
.EM_SETCHARFORMAT => "EM_SETCHARFORMAT",
264
PInvokeCore
.EM_SETEVENTMASK => "EM_SETEVENTMASK",
265
PInvokeCore
.EM_SETOLECALLBACK => "EM_SETOLECALLBACK",
266
PInvokeCore
.EM_SETPARAFORMAT => "EM_SETPARAFORMAT",
267
PInvokeCore
.EM_SETTARGETDEVICE => "EM_SETTARGETDEVICE",
268
PInvokeCore
.EM_STREAMIN => "EM_STREAMIN",
269
PInvokeCore
.EM_STREAMOUT => "EM_STREAMOUT",
270
PInvokeCore
.EM_GETTEXTRANGE => "EM_GETTEXTRANGE",
271
PInvokeCore
.EM_FINDWORDBREAK => "EM_FINDWORDBREAK",
272
PInvokeCore
.EM_SETOPTIONS => "EM_SETOPTIONS",
273
PInvokeCore
.EM_GETOPTIONS => "EM_GETOPTIONS",
274
PInvokeCore
.EM_FINDTEXTEX => "EM_FINDTEXTEX",
275
PInvokeCore
.EM_GETWORDBREAKPROCEX => "EM_GETWORDBREAKPROCEX",
276
PInvokeCore
.EM_SETWORDBREAKPROCEX => "EM_SETWORDBREAKPROCEX",
279
PInvokeCore
.EM_SETUNDOLIMIT => "EM_SETUNDOLIMIT",
280
PInvokeCore
.EM_REDO => "EM_REDO",
281
PInvokeCore
.EM_CANREDO => "EM_CANREDO",
282
PInvokeCore
.EM_GETUNDONAME => "EM_GETUNDONAME",
283
PInvokeCore
.EM_GETREDONAME => "EM_GETREDONAME",
284
PInvokeCore
.EM_STOPGROUPTYPING => "EM_STOPGROUPTYPING",
285
PInvokeCore
.EM_SETTEXTMODE => "EM_SETTEXTMODE",
286
PInvokeCore
.EM_GETTEXTMODE => "EM_GETTEXTMODE",
287
PInvokeCore
.EM_AUTOURLDETECT => "EM_AUTOURLDETECT",
288
PInvokeCore
.EM_GETAUTOURLDETECT => "EM_GETAUTOURLDETECT",
289
PInvokeCore
.EM_SETPALETTE => "EM_SETPALETTE",
290
PInvokeCore
.EM_GETTEXTEX => "EM_GETTEXTEX",
291
PInvokeCore
.EM_GETTEXTLENGTHEX => "EM_GETTEXTLENGTHEX",
294
PInvokeCore
.EM_SETPUNCTUATION => "EM_SETPUNCTUATION",
295
PInvokeCore
.EM_GETPUNCTUATION => "EM_GETPUNCTUATION",
296
PInvokeCore
.EM_SETWORDWRAPMODE => "EM_SETWORDWRAPMODE",
297
PInvokeCore
.EM_GETWORDWRAPMODE => "EM_GETWORDWRAPMODE",
298
PInvokeCore
.EM_SETIMECOLOR => "EM_SETIMECOLOR",
299
PInvokeCore
.EM_GETIMECOLOR => "EM_GETIMECOLOR",
300
PInvokeCore
.EM_SETIMEOPTIONS => "EM_SETIMEOPTIONS",
301
PInvokeCore
.EM_GETIMEOPTIONS => "EM_GETIMEOPTIONS",
302
PInvokeCore
.EM_CONVPOSITION => "EM_CONVPOSITION",
303
PInvokeCore
.EM_SETLANGOPTIONS => "EM_SETLANGOPTIONS",
304
PInvokeCore
.EM_GETLANGOPTIONS => "EM_GETLANGOPTIONS",
305
PInvokeCore
.EM_GETIMECOMPMODE => "EM_GETIMECOMPMODE",
306
PInvokeCore
.EM_FINDTEXTW => "EM_FINDTEXTW",
307
PInvokeCore
.EM_FINDTEXTEXW => "EM_FINDTEXTEXW",
310
PInvokeCore
.EM_RECONVERSION => "EM_RECONVERSION",
311
PInvokeCore
.EM_SETIMEMODEBIAS => "EM_SETIMEMODEBIAS",
312
PInvokeCore
.EM_GETIMEMODEBIAS => "EM_GETIMEMODEBIAS",
315
PInvokeCore
.EM_SETBIDIOPTIONS => "EM_SETBIDIOPTIONS",
316
PInvokeCore
.EM_GETBIDIOPTIONS => "EM_GETBIDIOPTIONS",
317
PInvokeCore
.EM_SETTYPOGRAPHYOPTIONS => "EM_SETTYPOGRAPHYOPTIONS",
318
PInvokeCore
.EM_GETTYPOGRAPHYOPTIONS => "EM_GETTYPOGRAPHYOPTIONS",
321
PInvokeCore
.EM_SETEDITSTYLE => "EM_SETEDITSTYLE",
322
PInvokeCore
.EM_GETEDITSTYLE => "EM_GETEDITSTYLE",
Windows\Win32\System\Com\ComHelpers.cs (1)
339
HRESULT hr =
PInvokeCore
.LoadRegTypeLib(typeLibrary, majorVersion, minorVersion, 0, typelib);
Windows\Win32\System\Com\GlobalInterfaceTable.cs (1)
22
PInvokeCore
.CoCreateInstance(
Windows\Win32\System\Com\IDispatch.cs (3)
96
int putDispatchID =
PInvokeCore
.DISPID_PROPERTYPUT;
113
PInvokeCore
.GetThreadLocale(),
141
HRESULT result = GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1u,
PInvokeCore
.GetThreadLocale(), &id);
Windows\Win32\System\Com\SAFEARRAY.cs (2)
35
return
PInvokeCore
.SafeArrayCreate(arrayType, 1, &saBound);
65
PInvokeCore
.SafeArrayGetVartype(pThis, &vt).ThrowOnFailure();
Windows\Win32\System\Com\SafeArrayScope.cs (5)
11
/// <see cref="
PInvokeCore
.SafeArrayCreate(VARENUM, uint, SAFEARRAYBOUND*)"/>
127
_value = (nint)
PInvokeCore
.SafeArrayCreate(vt, 1, &saBound);
214
PInvokeCore
.SafeArrayGetElement(Value, pIndices, &result).ThrowOnFailure();
225
PInvokeCore
.SafeArrayPutElement((SAFEARRAY*)_value, pIndices, value).ThrowOnFailure();
246
PInvokeCore
.SafeArrayDestroy(safeArray).ThrowOnFailure();
Windows\Win32\System\Variant\VARIANT.cs (3)
62
PInvokeCore
.PropVariantClear((PROPVARIANT*)t);
274
HRESULT hr =
PInvokeCore
.SafeArrayLock(psa);
432
hr =
PInvokeCore
.SafeArrayUnlock(psa);
Windows\Win32\UI\Controls\Dialogs\PRINTPAGERANGE.cs (1)
8
/// supplied in the <see cref="PRINTDLGEXW"/> structure when calling the <see cref="
PInvokeCore
.PrintDlgEx"/> function.
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (2)
12
PInvokeCore
.DeleteObject((HGDIOBJ)hbmMask.Value);
18
PInvokeCore
.DeleteObject((HGDIOBJ)hbmColor.Value);
System.Private.Windows.GdiPlus (22)
System\Drawing\CoreImageExtensions.cs (3)
21
if (format ==
PInvokeCore
.ImageFormatGIF && image.Data is { } rawData && rawData.Length > 0)
40
if (format ==
PInvokeCore
.ImageFormatJPEG || encoder == Guid.Empty)
42
format =
PInvokeCore
.ImageFormatPNG;
System\Drawing\IIconExtensions.cs (2)
21
(HICON)
PInvokeCore
.CopyImage(
44
PInvokeCore
.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (4)
40
/// the viewport origin are applied (<see cref="
PInvokeCore
.GetViewportExtEx(HDC, SIZE*)"/>). The clipping
148
_savedHdcState = saveHdcState ?
PInvokeCore
.SaveDC(HDC) : 0;
174
OBJ_TYPE type = (OBJ_TYPE)
PInvokeCore
.GetObjectType(HDC);
194
PInvokeCore
.RestoreDC(HDC, _savedHdcState);
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
22
if (
PInvokeCore
.GetDeviceCaps(hdc.Handle, GET_DEVICE_CAPS_INDEX.BITSPIXEL) > 8)
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
55
PInvokeCore
.OleCreatePictureIndirect(&desc, IID.Get<IPictureDisp>(), fOwn: true, picture).ThrowOnFailure();
70
PInvokeCore
.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
Windows\Win32\Graphics\GdiPlus\PixelFormat.cs (8)
12
Indexed = (int)
PInvokeCore
.PixelFormatIndexed,
17
Gdi = (int)
PInvokeCore
.PixelFormatGDI,
22
Alpha = (int)
PInvokeCore
.PixelFormatAlpha,
27
PAlpha = (int)
PInvokeCore
.PixelFormatPAlpha,
32
Extended = (int)
PInvokeCore
.PixelFormatExtended,
34
Canonical = (int)
PInvokeCore
.PixelFormatCanonical,
39
Undefined = (int)
PInvokeCore
.PixelFormatUndefined,
44
DontCare = (int)
PInvokeCore
.PixelFormatDontCare,
Windows\Win32\System\Ole\IPicture.cs (2)
23
PInvokeCore
.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
38
PInvokeCore
.OleCreatePictureIndirect(&desc, IID.Get<IPicture>(), fOwn: copy, picture).ThrowOnFailure();
System.Windows.Forms (1975)
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
69
?
PInvokeCore
.GetWindowText(target)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (3)
54
PInvokeCore
.GetCurrentThreadId(),
63
PInvokeCore
.GetCurrentThreadId(),
186
case
PInvokeCore
.WM_GETOBJECT:
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (18)
64
public override string Text =>
PInvokeCore
.GetWindowText(_owningChildEdit);
66
public override int TextLength => (int)
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.WM_GETTEXTLENGTH);
89
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_GETSEL, ref start, ref end);
163
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_GETSEL, ref start, ref end);
228
PInvokeCore
.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref pt);
272
if (
PInvokeCore
.MapWindowPoints(HWND.Null, _owningChildEdit.Handle, ref clientLocation) == 0)
308
PInvokeCore
.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref r);
326
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_SETSEL, (WPARAM)start, (LPARAM)end);
331
int index = PARAM.LOWORD(
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt)));
355
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_GETRECT, 0, ref rectangle);
367
int i = (int)
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
305
*pid =
PInvokeCore
.DISPID_UNKNOWN;
329
*pid =
PInvokeCore
.DISPID_UNKNOWN;
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
92
:
PInvokeCore
.DISPID_UNKNOWN;
System\Windows\Forms\ActiveX\AxHost.cs (62)
790
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_FONT);
796
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_FORECOLOR);
802
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR);
842
oleCtl.OnAmbientPropertyChange(
PInvokeCore
.DISPID_AMBIENT_DISPLAYNAME);
1067
s_logPixelsX =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
1068
s_logPixelsY =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
1250
IntPtr currentWndproc =
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
1256
if ((int)
PInvokeCore
.SendMessage(this, _subclassCheckMessage) == REGMSG_RETVAL)
1265
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, currentWndproc);
1761
message =
PInvokeCore
.WM_SYSKEYDOWN,
2082
case
PInvokeCore
.DISPID_AMBIENT_USERMODE:
2084
case
PInvokeCore
.DISPID_AMBIENT_AUTOCLIP:
2086
case
PInvokeCore
.DISPID_AMBIENT_MESSAGEREFLECT:
2088
case
PInvokeCore
.DISPID_AMBIENT_UIDEAD:
2090
case
PInvokeCore
.DISPID_AMBIENT_DISPLAYASDEFAULT:
2092
case
PInvokeCore
.DISPID_AMBIENT_FONT:
2099
case
PInvokeCore
.DISPID_AMBIENT_SHOWGRABHANDLES:
2101
case
PInvokeCore
.DISPID_AMBIENT_SHOWHATCHING:
2103
case
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR:
2110
case
PInvokeCore
.DISPID_AMBIENT_FORECOLOR:
2117
case
PInvokeCore
.DISPID_AMBIENT_DISPLAYNAME:
2119
case
PInvokeCore
.DISPID_AMBIENT_LOCALEID:
2120
return
PInvokeCore
.GetThreadLocale();
2121
case
PInvokeCore
.DISPID_AMBIENT_RIGHTTOLEFT:
2260
HRESULT hr =
PInvokeCore
.CoCreateInstance(
2369
hr = categorizeProperties.Value->GetCategoryName(propcat, (int)
PInvokeCore
.GetThreadLocale(), &name);
2710
Debug.Assert(dispid !=
PInvokeCore
.DISPID_UNKNOWN, "Wrong dispid sent to GetPropertyDescriptorFromDispid");
2977
lcid =
PInvokeCore
.GetThreadLocale(),
3037
PInvokeCore
.GetThreadLocale(),
3045
sink.OnChanged(
PInvokeCore
.DISPID_UNKNOWN);
3076
case
PInvokeCore
.WM_ERASEBKGND:
3078
case
PInvokeCore
.WM_SETCURSOR:
3079
case
PInvokeCore
.WM_SYSCOLORCHANGE:
3083
case
PInvokeCore
.WM_DRAWITEM:
3085
case
PInvokeCore
.WM_LBUTTONDBLCLK:
3086
case
PInvokeCore
.WM_LBUTTONUP:
3087
case
PInvokeCore
.WM_MBUTTONDBLCLK:
3088
case
PInvokeCore
.WM_MBUTTONUP:
3089
case
PInvokeCore
.WM_RBUTTONDBLCLK:
3090
case
PInvokeCore
.WM_RBUTTONUP:
3094
case
PInvokeCore
.WM_LBUTTONDOWN:
3095
case
PInvokeCore
.WM_MBUTTONDOWN:
3096
case
PInvokeCore
.WM_RBUTTONDOWN:
3105
case
PInvokeCore
.WM_KILLFOCUS:
3120
case
PInvokeCore
.WM_COMMAND:
3128
case
PInvokeCore
.WM_CONTEXTMENU:
3132
case
PInvokeCore
.WM_DESTROY:
3157
case
PInvokeCore
.WM_HELP:
3163
case
PInvokeCore
.WM_KEYUP:
3187
case
PInvokeCore
.WM_NCDESTROY:
3211
void* wndProc = (void*)
PInvokeCore
.GetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
3212
m.ResultInternal =
PInvokeCore
.CallWindowProc(
3235
_wndprocAddr =
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
3324
qaContainer.lcid = (int)
PInvokeCore
.GetThreadLocale();
3768
if ((bool)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_BOLD))
3773
if ((bool)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_ITALIC))
3778
if ((bool)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_UNDER))
3783
if ((bool)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_STRIKE))
3788
if ((short)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_WEIGHT) >= 700)
3793
using BSTR name = (BSTR)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_NAME);
3797
(float)(CY)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_SIZE),
3800
(byte)(short)dispatch.Value->GetProperty(
PInvokeCore
.DISPID_FONT_CHARSET));
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
485
if (dispid !=
PInvokeCore
.DISPID_UNKNOWN)
System\Windows\Forms\ActiveX\AxHost.State.cs (7)
140
hglobal =
PInvokeCore
.GlobalAlloc(GMEM_MOVEABLE, (uint)_length);
141
void* pointer =
PInvokeCore
.GlobalLock(hglobal);
151
PInvokeCore
.GlobalUnlock(hglobal);
158
PInvokeCore
.GlobalFree(hglobal);
181
PInvokeCore
.GlobalFree(hglobal);
278
void* pointer =
PInvokeCore
.GlobalLock(hglobal);
288
PInvokeCore
.GlobalUnlock(hglobal);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (35)
163
new("Font",
PInvokeCore
.DISPID_AMBIENT_FONT),
164
new("BackColor",
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR),
165
new("ForeColor",
PInvokeCore
.DISPID_AMBIENT_FORECOLOR)
179
AmbientProperty property = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR);
183
using VARIANT value = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR);
204
AmbientProperty property = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_FONT);
208
using VARIANT value = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_FONT);
240
AmbientProperty property = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_FORECOLOR);
244
using VARIANT value = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_FORECOLOR);
283
s_logPixels.X =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
284
s_logPixels.Y =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
363
PInvokeCore
.MapWindowPoints(hwndMap, _control, ref pt);
377
if (lpmsg->message ==
PInvokeCore
.WM_KEYDOWN && lpmsg->wParam == (WPARAM)(nuint)VIRTUAL_KEY.VK_TAB)
383
PInvokeCore
.SendMessage(target, lpmsg->message, lpmsg->wParam, lpmsg->lParam);
434
OBJ_TYPE hdcType = (OBJ_TYPE)
PInvokeCore
.GetObjectType(hdcDraw);
463
iMode = (HDC_MAP_MODE)
PInvokeCore
.SetMapMode(hdcDraw, HDC_MAP_MODE.MM_ANISOTROPIC);
476
PInvokeCore
.SendMessage(_control,
PInvokeCore
.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags);
492
PInvokeCore
.SetMapMode(hdcDraw, iMode);
1258
if (dispID ==
PInvokeCore
.DISPID_UNKNOWN)
1285
case
PInvokeCore
.DISPID_AMBIENT_UIDEAD:
1286
using (VARIANT value = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_UIDEAD))
1296
case
PInvokeCore
.DISPID_AMBIENT_DISPLAYASDEFAULT:
1299
using VARIANT value = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_DISPLAYASDEFAULT);
1363
AmbientProperty prop = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR);
1366
prop = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_FORECOLOR);
1372
prop = LookupAmbient(
PInvokeCore
.DISPID_AMBIENT_FONT);
1652
using VARIANT property = GetAmbientProperty(
PInvokeCore
.DISPID_AMBIENT_UIDEAD);
1812
PInvokeCore
.MapWindowPoints(hWndParent, _control, ref rcIntersect);
1850
case
PInvokeCore
.WM_KEYDOWN:
1851
case
PInvokeCore
.WM_SYSKEYDOWN:
1852
case
PInvokeCore
.WM_CHAR:
1853
case
PInvokeCore
.WM_SYSCHAR:
2112
if (m.Msg is >= ((int)
PInvokeCore
.WM_NCLBUTTONDOWN) and <= ((int)
PInvokeCore
.WM_NCMBUTTONDBLCLK))
System\Windows\Forms\Application.ComponentManager.cs (4)
201
return
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE);
231
if (
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
241
if (msg.message ==
PInvokeCore
.WM_QUIT)
309
if (!
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
309
else if (!
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
428
PInvokeCore
.GetWindowThreadProcessId(PInvoke.GetActiveWindow(), out uint pid);
454
if (!
PInvokeCore
.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.cs (8)
331
bool success = PInvoke.SendMessageCallback(hwnd,
PInvokeCore
.WM_SYSCOLORCHANGE + MessageId.WM_REFLECT, () => complete = true);
689
PInvokeCore
.EnumWindows(SendThemeChanged);
700
PInvokeCore
.GetWindowThreadProcessId(hwnd, &processId);
725
PInvokeCore
.EnumChildWindows(handle, SendThemeChangedRecursive);
728
PInvokeCore
.SendMessage(handle,
PInvokeCore
.WM_THEMECHANGED);
1133
ThreadContext? threadContext = ThreadContext.FromId(
PInvokeCore
.GetWindowThreadProcessId(handle.Handle, null));
1198
((WINDOW_STYLE)
PInvokeCore
.GetWindowLong(handle.Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
System\Windows\Forms\Application.LightThreadContext.cs (4)
64
if (!
PInvokeCore
.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
83
if (
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
93
if (msg.message ==
PInvokeCore
.WM_QUIT)
134
if (!
PInvokeCore
.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
30
HWND parentHandle = (HWND)
PInvokeCore
.GetWindowLong(MainForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Application.ParkingWindow.cs (7)
19
private const int WM_CHECKDESTROY = (int)
PInvokeCore
.WM_USER + 0x01;
73
uint id =
PInvokeCore
.GetWindowThreadProcessId(HWNDInternal, out _);
79
PInvokeCore
.PostMessage(HWNDInternal, WM_CHECKDESTROY);
141
if (m.MsgInternal ==
PInvokeCore
.WM_SHOWWINDOW)
147
case
PInvokeCore
.WM_PARENTNOTIFY:
148
if (m.WParamInternal.LOWORD ==
PInvokeCore
.WM_DESTROY)
150
PInvokeCore
.PostMessage(this, WM_CHECKDESTROY);
System\Windows\Forms\Application.ThreadContext.cs (10)
86
_id =
PInvokeCore
.GetCurrentThreadId();
275
if (
PInvokeCore
.GetCurrentThreadId() != _id)
292
PInvokeCore
.OleUninitialize();
355
uint hwndThread =
PInvokeCore
.GetWindowThreadProcessId(_parkingWindows[0], out _);
356
uint currentThread =
PInvokeCore
.GetCurrentThreadId();
500
if (id ==
PInvokeCore
.GetCurrentThreadId())
561
HRESULT hr =
PInvokeCore
.OleInitialize(pvReserved: (void*)null);
654
PInvoke.PostThreadMessage(_id,
PInvokeCore
.WM_QUIT, default, default);
750
hwndOwner = (HWND)
PInvokeCore
.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
919
if (msg.message ==
PInvokeCore
.WM_CHAR)
System\Windows\Forms\Application.ThreadWindows.cs (1)
25
PInvokeCore
.EnumCurrentThreadWindows(Callback);
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (2)
26
PInvokeCore
.DISPID_ABOUTBOX,
28
PInvokeCore
.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (2)
18
PInvokeCore
.DISPID_ABOUTBOX,
21
new DispIdAttribute(
PInvokeCore
.DISPID_ABOUTBOX),
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (2)
75
PInvokeCore
.GetThreadLocale(),
110
PInvokeCore
.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
50
return categorizeProperties.Value->GetCategoryName(categoryId, (int)
PInvokeCore
.GetThreadLocale(), &categoryName).Succeeded
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
64
hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID,
PInvokeCore
.GetThreadLocale(), null, &helpString);
136
hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID,
PInvokeCore
.GetThreadLocale(), &name, null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (2)
25
if (property.DISPID ==
PInvokeCore
.DISPID_MOUSEICON || property.Name.Contains("Icon"))
121
PInvokeCore
.OleCreatePictureIndirect(&pictdesc, IID.Get<IPicture>(), own, picture).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
620
hr = dispatch.Value->TryGetProperty(DISPID, &nativeValue,
PInvokeCore
.GetThreadLocale());
903
PInvokeCore
.GetThreadLocale(),
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
87
PInvokeCore
.GetThreadLocale()).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (8)
84
dispatch.Value->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), &typeInfo);
144
int dispid =
PInvokeCore
.DISPID_UNKNOWN;
156
hr = ComNativeDescriptor.GetPropertyValue(dispatch,
PInvokeCore
.DISPID_Name, out _);
159
dispid =
PInvokeCore
.DISPID_Name;
174
int pDispid =
PInvokeCore
.DISPID_UNKNOWN;
179
hr = dispatch->GetIDsOfNames(&guid, (PWSTR*)&n, 1,
PInvokeCore
.GetThreadLocale(), &pDispid);
563
|| dispid ==
PInvokeCore
.DISPID_HWND)
624
if (functionDescription->memid ==
PInvokeCore
.DISPID_ABOUTBOX)
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.PropInfo.cs (1)
20
public int DispId { get; set; } =
PInvokeCore
.DISPID_UNKNOWN;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (5)
109
if (dispid !=
PInvokeCore
.DISPID_UNKNOWN)
129
int dispid =
PInvokeCore
.DISPID_UNKNOWN;
131
HRESULT hr = dispatch->GetIDsOfNames(&guid, (PWSTR*)&n, 1,
PInvokeCore
.GetThreadLocale(), &dispid);
137
return dispid ==
PInvokeCore
.DISPID_UNKNOWN
148
HRESULT hr = dispatch->TryGetProperty(dispid, &result,
PInvokeCore
.GetThreadLocale());
System\Windows\Forms\Control.ControlNativeWindow.cs (4)
88
case
PInvokeCore
.WM_MOUSELEAVE:
92
case
PInvokeCore
.WM_MOUSEMOVE:
98
PInvokeCore
.SendMessage(_control, RegisteredMessage.WM_MOUSEENTER);
108
case
PInvokeCore
.WM_MOUSEWHEEL:
System\Windows\Forms\Control.cs (200)
768
backBrush =
PInvokeCore
.GetSysColorBrush(color);
773
backBrush =
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(color));
838
[DispId(
PInvokeCore
.DISPID_BACKCOLOR)]
1517
?
PInvokeCore
.GetWindowThreadProcessId(this, out _)
1518
:
PInvokeCore
.GetCurrentThreadId();
1563
PInvokeCore
.GetWindowRect(this, out RECT r);
1566
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
1816
[DispId(
PInvokeCore
.DISPID_ENABLED)]
1869
[DispId(
PInvokeCore
.DISPID_FONT)]
2064
[DispId(
PInvokeCore
.DISPID_FORECOLOR)]
2180
[DispId(
PInvokeCore
.DISPID_HWND)]
2245
Span<char> buffer = stackalloc char[
PInvokeCore
.MaxClassName];
2310
PInvokeCore
.GetWindowRect(this, out var temp);
2321
PInvokeCore
.GetWindowRect(next, out temp);
2380
return
PInvokeCore
.GetWindowThreadProcessId(control, out _) !=
PInvokeCore
.GetCurrentThreadId();
3129
[DispId(
PInvokeCore
.DISPID_TABSTOP)]
3188
[DispId(
PInvokeCore
.DISPID_TEXT)]
3350
PInvokeCore
.SendMessage(
3352
PInvokeCore
.WM_CHANGEUISTATE,
3397
PInvokeCore
.SendMessage(TopMostParent,
3398
PInvokeCore
.WM_CHANGEUISTATE,
3609
get => (WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
3610
set =>
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)value);
3618
get => (WINDOW_STYLE)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
3619
set =>
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (nint)value);
3653
return
PInvokeCore
.GetWindowText(this);
4365
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
4700
BOOL result =
PInvokeCore
.PeekMessage(
4735
if (((WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(_window, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE))
4738
PInvoke.DefMDIChildProc(InternalHandle,
PInvokeCore
.WM_CLOSE, default, default);
4759
PInvokeCore
.DeleteObject(backBrush);
4946
if (
PInvokeCore
.DoDragDrop(dataScope, dropSource, (DROPEFFECT)(uint)allowedEffects, out finalEffect).Failed)
4992
PInvokeCore
.SendMessage(
4994
PInvokeCore
.WM_PRINT,
5001
PInvokeCore
.BitBlt(
5035
if (
PInvokeCore
.GetWindowThreadProcessId(marshaler, out _) ==
PInvokeCore
.GetCurrentThreadId())
5060
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
5852
PInvokeCore
.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor));
5853
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor));
5857
return (HBRUSH)
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
6313
return ((int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_GETDLGCODE) & mask) != 0;
6351
&& ((uint)
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_GETDLGCODE) & mask) != 0;
6479
bool syncSameThread = synchronous &&
PInvokeCore
.GetWindowThreadProcessId(this, out _) ==
PInvokeCore
.GetCurrentThreadId();
6505
if (s_threadCallbackMessage ==
PInvokeCore
.WM_NULL)
6519
PInvokeCore
.PostMessage(this, s_threadCallbackMessage);
6655
PInvokeCore
.DeleteObject(backBrush);
7163
Message m = Message.Create(HWND,
PInvokeCore
.WM_PRINTCLIENT, (WPARAM)hdc, (LPARAM)flags);
7401
PInvokeCore
.PostMessage(this, s_threadCallbackMessage);
7472
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_HSCROLL, WPARAM.MAKEWPARAM((int)SCROLLBAR_COMMAND.SB_THUMBPOSITION, si.nPos));
7521
PInvokeCore
.DeleteObject(backBrush);
7968
PInvokeCore
.GetClientRect(new HandleRef<HWND>(_window, InternalHandle), out RECT rect);
8295
PInvokeCore
.OffsetViewportOrgEx(hdc, -Left, -Top, lppt: null);
8563
PInvokeCore
.MapWindowPoints((HWND)default, this, ref p);
8572
PInvokeCore
.MapWindowPoints(this, (HWND)default, ref p);
8618
if (msg.MsgInternal ==
PInvokeCore
.WM_KEYDOWN || msg.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN)
8640
else if (msg.MsgInternal ==
PInvokeCore
.WM_CHAR || msg.MsgInternal ==
PInvokeCore
.WM_SYSCHAR)
8642
if (msg.MsgInternal ==
PInvokeCore
.WM_CHAR && IsInputChar((char)(nint)msg.WParamInternal))
8696
if (message.Msg is ((int)
PInvokeCore
.WM_KEYDOWN) or ((int)
PInvokeCore
.WM_SYSKEYDOWN))
8714
if (message.MsgInternal ==
PInvokeCore
.WM_KEYDOWN || message.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN)
8723
else if (message.MsgInternal ==
PInvokeCore
.WM_CHAR || message.MsgInternal ==
PInvokeCore
.WM_SYSCHAR)
8768
Debug.Assert((OBJ_TYPE)
PInvokeCore
.GetObjectType(hDC) == OBJ_TYPE.OBJ_ENHMETADC,
8779
bool success =
PInvokeCore
.GetViewportOrgEx(hDC, &viewportOrg);
8791
GDI_REGION_TYPE selectResult =
PInvokeCore
.SelectClipRgn(hDC, hClippingRegion);
8809
bool success =
PInvokeCore
.GetWindowRect(this, out var windowRect);
8837
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_PRINT, (WPARAM)hDC, (LPARAM)lParam);
8854
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_PRINT, (WPARAM)dcWrapper.HDC, (LPARAM)lParam);
8904
if (m.MsgInternal ==
PInvokeCore
.WM_CHAR || m.MsgInternal ==
PInvokeCore
.WM_SYSCHAR)
8921
else if (m.MsgInternal ==
PInvokeCore
.WM_IME_CHAR)
8939
if (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN || m.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN)
8958
RemovePendingMessages(
PInvokeCore
.WM_CHAR,
PInvokeCore
.WM_CHAR);
8959
RemovePendingMessages(
PInvokeCore
.WM_SYSCHAR,
PInvokeCore
.WM_SYSCHAR);
8960
RemovePendingMessages(
PInvokeCore
.WM_IME_CHAR,
PInvokeCore
.WM_IME_CHAR);
9028
uint current = (uint)
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_QUERYUISTATE);
9035
current = (uint)
PInvokeCore
.SendMessage(topMostParent,
PInvokeCore
.WM_QUERYUISTATE);
9079
PInvokeCore
.SendMessage(
9081
PInvoke.GetParent(topMostParent).IsNull ?
PInvokeCore
.WM_CHANGEUISTATE :
PInvokeCore
.WM_UPDATEUISTATE,
9111
while (
PInvokeCore
.PeekMessage(&msg, this, (uint)msgMin, (uint)msgMax, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE))
9372
PInvokeCore
.MapWindowPoints(HWND.Null, this, ref rect);
9382
PInvokeCore
.MapWindowPoints(this, HWND.Null, ref rect);
9400
m.ResultInternal =
PInvokeCore
.SendMessage(
9553
HRESULT hr =
PInvokeCore
.RegisterDragDrop(this, new DropTarget(this));
9562
HRESULT hr =
PInvokeCore
.RevokeDragDrop(this);
10680
private void SetWindowFont() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETFONT, (WPARAM)FontHandle, (LPARAM)(BOOL)false);
10684
int styleFlags = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
10685
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, value ? styleFlags | flag : styleFlags & ~flag);
10826
PInvokeCore
.GetClientRect(this, out rect);
10829
PInvokeCore
.GetWindowRect(this, out rect);
10832
PInvokeCore
.MapWindowPoints(HWND.Null, PInvoke.GetParent(this), ref rect);
11113
if (((WINDOW_STYLE)
PInvokeCore
.GetWindowLong(lastParentHandle, WINDOW_LONG_PTR_INDEX.GWL_STYLE))
11122
PInvokeCore
.PostMessage(lastParentHandle,
PInvokeCore
.WM_CLOSE);
11249
PInvokeCore
.GetClientRect(this, out RECT rc);
11644
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)screenLocation);
11723
m.ResultInternal =
PInvokeCore
.SendMessage(
11730
PInvokeCore
.SendMessage(
11778
m.ResultInternal =
PInvokeCore
.SendMessage(
11997
case
PInvokeCore
.WM_CREATE:
12000
case
PInvokeCore
.WM_DESTROY:
12261
case
PInvokeCore
.WM_CAPTURECHANGED:
12265
case
PInvokeCore
.WM_GETOBJECT:
12269
case
PInvokeCore
.WM_COMMAND:
12273
case
PInvokeCore
.WM_CLOSE:
12277
case
PInvokeCore
.WM_CONTEXTMENU:
12281
case
PInvokeCore
.WM_DISPLAYCHANGE:
12285
case
PInvokeCore
.WM_DRAWITEM:
12293
case
PInvokeCore
.WM_ERASEBKGND:
12297
case
PInvokeCore
.WM_HELP:
12301
case
PInvokeCore
.WM_PAINT:
12313
case
PInvokeCore
.WM_PRINTCLIENT:
12325
case
PInvokeCore
.WM_SYSCOMMAND:
12335
case
PInvokeCore
.WM_INPUTLANGCHANGE:
12339
case
PInvokeCore
.WM_INPUTLANGCHANGEREQUEST:
12343
case
PInvokeCore
.WM_MEASUREITEM:
12351
case
PInvokeCore
.WM_SETCURSOR:
12355
case
PInvokeCore
.WM_WINDOWPOSCHANGING:
12359
case
PInvokeCore
.WM_CHAR:
12360
case
PInvokeCore
.WM_KEYDOWN:
12361
case
PInvokeCore
.WM_SYSKEYDOWN:
12362
case
PInvokeCore
.WM_KEYUP:
12363
case
PInvokeCore
.WM_SYSKEYUP:
12367
case
PInvokeCore
.WM_CREATE:
12371
case
PInvokeCore
.WM_DESTROY:
12375
case
PInvokeCore
.WM_CTLCOLOR:
12376
case
PInvokeCore
.WM_CTLCOLORBTN:
12377
case
PInvokeCore
.WM_CTLCOLORDLG:
12378
case
PInvokeCore
.WM_CTLCOLORMSGBOX:
12379
case
PInvokeCore
.WM_CTLCOLORSCROLLBAR:
12380
case
PInvokeCore
.WM_CTLCOLOREDIT:
12381
case
PInvokeCore
.WM_CTLCOLORLISTBOX:
12382
case
PInvokeCore
.WM_CTLCOLORSTATIC:
12399
case
PInvokeCore
.WM_HSCROLL:
12400
case
PInvokeCore
.WM_VSCROLL:
12401
case
PInvokeCore
.WM_DELETEITEM:
12402
case
PInvokeCore
.WM_VKEYTOITEM:
12403
case
PInvokeCore
.WM_CHARTOITEM:
12404
case
PInvokeCore
.WM_COMPAREITEM:
12412
case
PInvokeCore
.WM_IME_CHAR:
12416
case
PInvokeCore
.WM_IME_STARTCOMPOSITION:
12420
case
PInvokeCore
.WM_IME_ENDCOMPOSITION:
12424
case
PInvokeCore
.WM_IME_NOTIFY:
12428
case
PInvokeCore
.WM_KILLFOCUS:
12432
case
PInvokeCore
.WM_LBUTTONDBLCLK:
12441
case
PInvokeCore
.WM_LBUTTONDOWN:
12445
case
PInvokeCore
.WM_LBUTTONUP:
12449
case
PInvokeCore
.WM_MBUTTONDBLCLK:
12458
case
PInvokeCore
.WM_MBUTTONDOWN:
12462
case
PInvokeCore
.WM_MBUTTONUP:
12466
case
PInvokeCore
.WM_XBUTTONDOWN:
12470
case
PInvokeCore
.WM_XBUTTONUP:
12474
case
PInvokeCore
.WM_XBUTTONDBLCLK:
12483
case
PInvokeCore
.WM_MOUSELEAVE:
12487
case
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT:
12492
case
PInvokeCore
.WM_DPICHANGED_AFTERPARENT:
12497
case
PInvokeCore
.WM_MOUSEMOVE:
12501
case
PInvokeCore
.WM_MOUSEWHEEL:
12505
case
PInvokeCore
.WM_MOVE:
12509
case
PInvokeCore
.WM_NOTIFY:
12513
case
PInvokeCore
.WM_NOTIFYFORMAT:
12521
case
PInvokeCore
.WM_SHOWWINDOW:
12525
case
PInvokeCore
.WM_RBUTTONDBLCLK:
12534
case
PInvokeCore
.WM_RBUTTONDOWN:
12538
case
PInvokeCore
.WM_RBUTTONUP:
12542
case
PInvokeCore
.WM_SETFOCUS:
12546
case
PInvokeCore
.WM_MOUSEHOVER:
12550
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
12554
case
PInvokeCore
.WM_QUERYNEWPALETTE:
12558
case
PInvokeCore
.WM_UPDATEUISTATE:
12562
case
PInvokeCore
.WM_PARENTNOTIFY:
12566
case
PInvokeCore
.WM_SETTINGCHANGE:
12616
case
PInvokeCore
.WM_SYSCOLORCHANGE:
12624
case
PInvokeCore
.WM_EXITMENULOOP:
12625
case
PInvokeCore
.WM_INITMENUPOPUP:
12626
case
PInvokeCore
.WM_MENUSELECT:
12858
PInvokeCore
.GetWindowRect(this, out var rect);
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
32
PInvokeCore
.DeleteObject(_handle);
System\Windows\Forms\Control.MetafileDCWrapper.cs (14)
30
Debug.Assert((OBJ_TYPE)
PInvokeCore
.GetObjectType(hOriginalDC) == OBJ_TYPE.OBJ_ENHMETADC,
40
HDC =
PInvokeCore
.CreateCompatibleDC(default);
42
int planes =
PInvokeCore
.GetDeviceCaps(HDC, GET_DEVICE_CAPS_INDEX.PLANES);
43
int bitsPixel =
PInvokeCore
.GetDeviceCaps(HDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
44
_hBitmap =
PInvokeCore
.CreateBitmap(size.Width, size.Height, (uint)planes, (uint)bitsPixel, lpBits: null);
45
_hOriginalBmp = (HBITMAP)
PInvokeCore
.SelectObject(HDC, _hBitmap);
66
PInvokeCore
.SelectObject(HDC, _hOriginalBmp);
67
success =
PInvokeCore
.DeleteObject(_hBitmap);
69
success =
PInvokeCore
.DeleteDC(HDC);
91
HBITMAP hNullBitmap =
PInvokeCore
.CreateBitmap(1, 1, 1, 1, null);
99
HBITMAP hBitmap = (HBITMAP)
PInvokeCore
.SelectObject(hdcSrc, hNullBitmap);
106
PInvokeCore
.SelectObject(hdcSrc, hBitmap);
108
if (!
PInvokeCore
.GetObject(hBitmap, out BITMAP bmp))
214
PInvokeCore
.DeleteObject(hNullBitmap);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
345
case
PInvokeCore
.WM_ERASEBKGND:
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (8)
1189
PInvokeCore
.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)true);
1217
PInvokeCore
.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)false);
1380
case
PInvokeCore
.WM_KILLFOCUS:
1381
case
PInvokeCore
.WM_CANCELMODE:
1382
case
PInvokeCore
.WM_CAPTURECHANGED:
1397
case
PInvokeCore
.WM_LBUTTONUP:
1398
case
PInvokeCore
.WM_MBUTTONUP:
1399
case
PInvokeCore
.WM_RBUTTONUP:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
86
?
PInvokeCore
.GetSysColorBrush(SYS_COLOR_INDEX.COLOR_HIGHLIGHT)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
210
PInvokeCore
.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState);
500
PInvokeCore
.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
163
PInvokeCore
.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)value);
349
PInvokeCore
.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)_isChecked);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (2)
23
PInvokeCore
.EnumChildWindows(new HandleRef<HWND>(this, acHandle), RegisterACWindowRecursive);
71
if (m.MsgInternal ==
PInvokeCore
.WM_NCDESTROY)
System\Windows\Forms\Controls\ComboBox\ComboBox.AutoCompleteDropDownFinder.cs (1)
33
PInvokeCore
.EnumCurrentThreadWindows(Callback);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
36
PInvokeCore
.GetWindowRect(_owningComboBox.GetListNativeWindow(), out var rect);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (3)
25
case
PInvokeCore
.WM_GETOBJECT:
28
case
PInvokeCore
.WM_MOUSEMOVE:
55
case
PInvokeCore
.WM_DESTROY:
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (3)
41
int result = (int)
PInvokeCore
.SendMessage(
54
PInvokeCore
.MapWindowPoints(listHandle, HWND.Null, ref translated);
185
PInvokeCore
.SendMessage(_owningComboBox, PInvoke.CB_SETTOPINDEX, (WPARAM)GetCurrentIndex());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (15)
100
?
PInvokeCore
.GetWindowText(_owningChildEdit)
105
? (int)
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.WM_GETTEXTLENGTH)
224
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_GETSEL, ref start, ref end);
295
PInvokeCore
.MapWindowPoints(_owningChildEdit, (HWND)default, ref pt);
345
if (
PInvokeCore
.MapWindowPoints((HWND)default, _owningChildEdit, ref clientLocation) == 0)
399
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_SETSEL, (WPARAM)start, (LPARAM)end);
404
int index = (int)
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_CHARFROMPOS, (WPARAM)0, (LPARAM)pt);
430
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_GETRECT, (WPARAM)0, ref rectangle);
442
int i = (int)
PInvokeCore
.SendMessage(_owningChildEdit,
PInvokeCore
.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (92)
441
PInvokeCore
.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)value);
481
get => IsHandleCreated && (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETDROPPEDSTATE) != 0;
489
PInvokeCore
.SendMessage(this, PInvoke.CB_SHOWDROPDOWN, (WPARAM)(value ? -1 : 0));
590
int height = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETITEMHEIGHT);
698
PInvokeCore
.SendMessage(this, PInvoke.CB_LIMITTEXT, (WPARAM)value);
867
get => IsHandleCreated ? (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETCURSEL) : _selectedIndex;
880
PInvokeCore
.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)value);
956
PInvokeCore
.SendMessage(_childEdit,
PInvokeCore
.EM_REPLACESEL, (WPARAM)(-1), value ?? string.Empty);
974
PInvokeCore
.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&start), (LPARAM)(&end));
995
PInvokeCore
.SendMessage(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&value));
1374
PInvokeCore
.GetWindowRect(this, out var comboRectMid);
1377
PInvokeCore
.GetWindowRect(_childEdit, out var editRectMid);
1394
case
PInvokeCore
.WM_CHAR:
1413
case
PInvokeCore
.WM_SYSCHAR:
1432
case
PInvokeCore
.WM_KEYDOWN:
1433
case
PInvokeCore
.WM_SYSKEYDOWN:
1473
case
PInvokeCore
.WM_INPUTLANGCHANGE:
1477
case
PInvokeCore
.WM_KEYUP:
1478
case
PInvokeCore
.WM_SYSKEYUP:
1502
case
PInvokeCore
.WM_KILLFOCUS:
1524
case
PInvokeCore
.WM_SETFOCUS:
1569
case
PInvokeCore
.WM_SETFONT:
1573
PInvokeCore
.SendMessage(
1575
PInvokeCore
.EM_SETMARGINS,
1580
case
PInvokeCore
.WM_LBUTTONDBLCLK:
1597
case
PInvokeCore
.WM_MBUTTONDBLCLK:
1614
case
PInvokeCore
.WM_RBUTTONDBLCLK:
1631
case
PInvokeCore
.WM_LBUTTONDOWN:
1644
case
PInvokeCore
.WM_LBUTTONUP:
1652
PInvokeCore
.GetWindowRect(this, out var rect);
1676
case
PInvokeCore
.WM_MBUTTONDOWN:
1689
case
PInvokeCore
.WM_RBUTTONDOWN:
1706
case
PInvokeCore
.WM_MBUTTONUP:
1715
case
PInvokeCore
.WM_RBUTTONUP:
1727
case
PInvokeCore
.WM_CONTEXTMENU:
1731
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CONTEXTMENU, m.WParamInternal, m.LParamInternal);
1740
case
PInvokeCore
.WM_MOUSEMOVE:
1749
case
PInvokeCore
.WM_SETCURSOR:
1762
case
PInvokeCore
.WM_MOUSELEAVE:
1800
PInvokeCore
.GetWindowRect(this, out var rect);
1967
int h = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)index);
1992
if (msg ==
PInvokeCore
.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor())
1999
else if (msg ==
PInvokeCore
.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint))
2004
PInvokeCore
.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor));
2005
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor));
2018
if (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN)
2036
else if (m.MsgInternal ==
PInvokeCore
.WM_CHAR)
2160
int insertIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_ADDSTRING, (WPARAM)0, GetItemText(item));
2176
PInvokeCore
.SendMessage(this, PInvoke.CB_RESETCONTENT);
2189
int maxLength = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETLBTEXTLEN, (WPARAM)index);
2198
int actualLength = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETLBTEXT, (WPARAM)index, (LPARAM)b);
2211
int insertIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_INSERTSTRING, (WPARAM)index, GetItemText(item));
2238
PInvokeCore
.SendMessage(this, PInvoke.CB_DELETESTRING, (WPARAM)index);
2273
PInvokeCore
.SendMessage(this, PInvoke.CB_LIMITTEXT, (WPARAM)MaxLength);
2302
PInvokeCore
.SendMessage(_childEdit,
PInvokeCore
.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
2308
PInvokeCore
.SendMessage(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)dropDownWidth);
2361
PInvokeCore
.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)_selectedIndex);
3247
PInvokeCore
.SendMessage(this, PInvoke.CB_SETEDITSEL, (WPARAM)0, LPARAM.MAKELPARAM(start, end));
3291
PInvokeCore
.SendMessage(this, PInvoke.CB_SETCURSEL, (WPARAM)DataManager.Position);
3389
PInvokeCore
.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight);
3390
PInvokeCore
.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, 0, ItemHeight);
3394
PInvokeCore
.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight);
3398
int original = (int)
PInvokeCore
.SendMessage(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)i);
3403
PInvokeCore
.SendMessage(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)i, (LPARAM)mievent.ItemHeight);
3444
PInvokeCore
.SendMessage(_childEdit,
PInvokeCore
.WM_SETTEXT, 0, s);
3453
PInvokeCore
.GetClientRect(this, out RECT rect);
3467
if ((int)m.WParamInternal == ((int)
PInvokeCore
.WM_CREATE | 1000 << 16))
3634
case
PInvokeCore
.WM_SETFOCUS:
3646
case
PInvokeCore
.WM_KILLFOCUS:
3666
PInvokeCore
.PostMessage(this,
PInvokeCore
.WM_MOUSELEAVE);
3675
case
PInvokeCore
.WM_CTLCOLOREDIT:
3676
case
PInvokeCore
.WM_CTLCOLORLISTBOX:
3679
case
PInvokeCore
.WM_ERASEBKGND:
3682
case
PInvokeCore
.WM_PARENTNOTIFY:
3694
case
PInvokeCore
.WM_LBUTTONDOWN:
3698
case
PInvokeCore
.WM_LBUTTONUP:
3699
PInvokeCore
.GetWindowRect(this, out var rect);
3726
case
PInvokeCore
.WM_MOUSELEAVE:
3731
case
PInvokeCore
.WM_PAINT:
3742
PInvokeCore
.CombineRgn(dropDownRegion, windowRegion, dropDownRegion, RGN_COMBINE_MODE.RGN_DIFF);
3756
PInvokeCore
.SelectClipRgn(dc, dropDownRegion);
3764
PInvokeCore
.SelectClipRgn(dc, windowRegion);
3776
case
PInvokeCore
.WM_PRINTCLIENT:
3797
case
PInvokeCore
.WM_SETCURSOR:
3801
case
PInvokeCore
.WM_SETFONT:
3810
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
3819
case
PInvokeCore
.WM_NCDESTROY:
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (26)
5708
HGDIOBJ saveBrush =
PInvokeCore
.SelectObject(dc, halftone);
5715
PInvokeCore
.SelectObject(dc, saveBrush);
5716
PInvokeCore
.DeleteObject(halftone);
5727
HGDIOBJ saveBrush =
PInvokeCore
.SelectObject(dc, halftone);
5729
PInvokeCore
.SelectObject(dc, saveBrush);
5730
PInvokeCore
.DeleteObject(halftone);
21876
if (m.Msg is ((int)
PInvokeCore
.WM_SYSKEYDOWN) or ((int)
PInvokeCore
.WM_KEYDOWN))
21909
PInvokeCore
.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
21920
&& (m.MsgInternal ==
PInvokeCore
.WM_SYSCHAR || m.MsgInternal ==
PInvokeCore
.WM_CHAR || m.MsgInternal ==
PInvokeCore
.WM_IME_CHAR))
21925
PInvokeCore
.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
21943
dataGridViewWantsInputKey = m.MsgInternal ==
PInvokeCore
.WM_CHAR
21969
if (EditingControl is not null && (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN || m.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN))
21982
if (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN || m.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN)
30042
PInvokeCore
.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
30065
case
PInvokeCore
.WM_GETDLGCODE:
30068
case
PInvokeCore
.WM_LBUTTONDBLCLK:
30069
case
PInvokeCore
.WM_LBUTTONDOWN:
30082
case
PInvokeCore
.WM_NOTIFY:
30091
case
PInvokeCore
.WM_IME_STARTCOMPOSITION:
30092
case
PInvokeCore
.WM_IME_COMPOSITION:
30096
PInvokeCore
.SendMessage(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
618
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)s_cachedDropDownWidth);
625
int dropDownWidth = (int)
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_GETDROPPEDWIDTH);
628
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)DropDownWidth);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (3)
254
if (m.MsgInternal ==
PInvokeCore
.WM_CHAR
266
if (m.MsgInternal ==
PInvokeCore
.WM_CHAR && ModifierKeys == Keys.Control && Multiline && AcceptsReturn)
275
if (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN && ModifierKeys == Keys.Control)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (20)
341
nint result =
PInvokeCore
.SendMessage(this, PInvoke.DTM_GETSYSTEMTIME, 0, ref systemTime);
359
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
363
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_NONE);
445
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETFORMATW, 0, _customFormat);
896
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
977
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
981
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_NONE);
986
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETFORMATW, 0, _customFormat);
1128
PInvokeCore
.SetWindowLong(
1131
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE));
1263
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1280
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETMCCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value);
1291
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETMCFONT, (WPARAM)CalendarFontHandle, (LPARAM)(-1));
1321
PInvokeCore
.SendMessage(this, PInvoke.DTM_SETRANGE, (WPARAM)flags, ref times[0]);
1443
PInvokeCore
.EnumChildWindows(this, c.enumChildren);
1505
HWND handle = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.DTM_GETMONTHCAL);
1508
WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
1511
PInvokeCore
.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, (nint)style);
1555
case
PInvokeCore
.WM_LBUTTONDOWN:
1567
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (3)
136
PInvokeCore
.SendMessage(owner,
PInvokeCore
.WM_SYSKEYDOWN, (WPARAM)(int)Keys.Down);
145
PInvokeCore
.SendMessage(owner, PInvoke.DTM_CLOSEMONTHCAL);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (8)
252
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
261
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
663
PInvokeCore
.GetClientRect(this, out RECT rect);
691
case
PInvokeCore
.WM_ERASEBKGND:
692
case
PInvokeCore
.WM_PRINTCLIENT:
695
case
PInvokeCore
.WM_GETOBJECT:
System\Windows\Forms\Controls\ImageList\ImageList.cs (8)
223
PInvokeCore
.GetObject(imageInfo.hbmImage, out BITMAP bmp);
386
PInvokeCore
.DeleteObject(hBitmap);
387
PInvokeCore
.DeleteObject(hMask);
434
PInvoke.ImageList.SetBkColor(this, (COLORREF)
PInvokeCore
.CLR_NONE);
539
(COLORREF)
PInvokeCore
.CLR_NONE,
540
(COLORREF)
PInvokeCore
.CLR_NONE,
675
(COLORREF)
PInvokeCore
.CLR_NONE,
676
(COLORREF)
PInvokeCore
.CLR_NONE,
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
167
PInvokeCore
.DeleteObject((HGDIOBJ)hBitmap);
168
PInvokeCore
.DeleteObject((HGDIOBJ)hMask);
System\Windows\Forms\Controls\Labels\Label.cs (2)
206
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
1431
case
PInvokeCore
.WM_NCHITTEST:
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
301
PInvokeCore
.GetWindowRect(this, out var r);
304
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
1764
case
PInvokeCore
.WM_SETCURSOR:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
392
PInvokeCore
.SendMessage(this, PInvoke.LB_GETITEMRECT, (WPARAM)index, ref rect);
464
PInvokeCore
.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
761
PInvokeCore
.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (39)
203
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
257
PInvokeCore
.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth);
423
internal int FocusedIndex => IsHandleCreated ? (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETCARETINDEX) : -1;
598
PInvokeCore
.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, 0, value);
839
return (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETCURSEL);
1117
get => IsHandleCreated ? (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETTOPINDEX) : _topIndex;
1122
PInvokeCore
.SendMessage(this, PInvoke.LB_SETTOPINDEX, (WPARAM)value);
1425
int height = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETITEMHEIGHT, (WPARAM)index);
1446
if (
PInvokeCore
.SendMessage(this, PInvoke.LB_GETITEMRECT, (uint)index, ref rect) == 0)
1480
int selection = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETSEL, (WPARAM)index);
1514
PInvokeCore
.GetClientRect(this, out RECT r);
1517
int index = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_ITEMFROMPOINT, 0, PARAM.FromLowHigh(x, y));
1534
int insertIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_ADDSTRING, 0, GetItemText(item));
1558
PInvokeCore
.SendMessage(this, PInvoke.LB_RESETCONTENT);
1567
int maxLength = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETTEXTLEN, (WPARAM)index);
1576
int actualLength = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETTEXT, (WPARAM)index, (LPARAM)b);
1589
int insertIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_INSERTSTRING, (uint)index, GetItemText(item));
1616
bool selected = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETSEL, (WPARAM)index) > 0;
1617
PInvokeCore
.SendMessage(this, PInvoke.LB_DELETESTRING, (WPARAM)index);
1639
PInvokeCore
.SendMessage(this, PInvoke.LB_SETCURSEL, (WPARAM)(value ? index : -1));
1643
PInvokeCore
.SendMessage(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (LPARAM)index);
1666
int index = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETCURSEL);
1676
int count = (int)
PInvokeCore
.SendMessage(this, PInvoke.LB_GETSELCOUNT);
1682
PInvokeCore
.SendMessage(this, PInvoke.LB_GETSELITEMS, (WPARAM)count, (LPARAM)pResult);
1747
PInvokeCore
.SendMessage(this, PInvoke.LB_SETLOCALE, (WPARAM)
PInvokeCore
.GetThreadLocale());
1751
PInvokeCore
.SendMessage(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth);
1756
PInvokeCore
.SendMessage(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
1761
PInvokeCore
.SendMessage(this, PInvoke.LB_SETTOPINDEX, (WPARAM)_topIndex);
1772
PInvokeCore
.SendMessage(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (LPARAM)pOffsets);
2118
PInvokeCore
.SendMessage(this, PInvoke.LB_SETCURSEL, (WPARAM)DataManager.Position);
2257
PInvokeCore
.SendMessage(this, PInvoke.LB_SETHORIZONTALEXTENT, (WPARAM)width);
2314
PInvokeCore
.SendMessage(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (nint)pOffsets);
2412
case
PInvokeCore
.WM_PRINT:
2415
case
PInvokeCore
.WM_LBUTTONDOWN:
2419
case
PInvokeCore
.WM_LBUTTONUP:
2461
case
PInvokeCore
.WM_RBUTTONUP:
2470
case
PInvokeCore
.WM_LBUTTONDBLCLK:
2478
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (5)
207
PInvokeCore
.SendMessage(_owningListBox, PInvoke.LB_SETCARETINDEX, (WPARAM)currentIndex);
211
int firstVisibleIndex = (int)
PInvokeCore
.SendMessage(_owningListBox, PInvoke.LB_GETTOPINDEX);
214
PInvokeCore
.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)currentIndex);
224
int itemHeight = (int)
PInvokeCore
.SendMessage(_owningListBox, PInvoke.LB_GETITEMHEIGHT, (WPARAM)i);
236
PInvokeCore
.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)(currentIndex - visibleItemsCount + 1));
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
55
return (int)
PInvokeCore
.SendMessage(_owner, PInvoke.LB_GETSELCOUNT);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
395
HWND hwndHdr = (HWND)
PInvokeCore
.SendMessage(ListView, PInvoke.LVM_GETHEADER);
398
int nativeColumnCount = (int)
PInvokeCore
.SendMessage(hwndHdr, PInvoke.HDM_GETITEMCOUNT);
401
_width = (int)
PInvokeCore
.SendMessage(ListView, PInvoke.LVM_GETCOLUMNWIDTH, (WPARAM)Index);
483
PInvokeCore
.SendMessage(ListView, PInvoke.LVM_SETCOLUMNORDERARRAY, (WPARAM)cols.Length, (LPARAM)pCols);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
334
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)colIdx);
507
int retval = (int)
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)index);
System\Windows\Forms\Controls\ListView\ListView.cs (137)
354
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
404
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref lvbkImage);
416
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
559
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
563
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, PInvoke.LVSIL_STATE);
641
int currentStyle = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
812
int displayIndex = (int)
PInvokeCore
.SendMessage(
843
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor);
956
PInvokeCore
.SendMessage(
1220
PInvokeCore
.SendMessage(
1459
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)(value?.Handle ?? 0));
1564
PInvokeCore
.SendMessage(this,
1582
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE);
1600
PInvokeCore
.SendMessage(
1663
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
1693
nint result =
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
1726
_topIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETTOPINDEX);
1837
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETVIEW, (WPARAM)(int)_viewStyle);
1886
topIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETTOPINDEX);
1893
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_virtualListSize);
2189
HWND hwnd = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETHEADER);
2212
&&
PInvokeCore
.SendMessage(hwnd, PInvoke.HDM_HITTEST, (WPARAM)0, ref lvhi) != -1 && lvhi.iItem > -1)
2262
PInvokeCore
.PostMessage(this, PInvoke.LVM_ARRANGE, (WPARAM)(int)value);
2398
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_TIMER, (WPARAM)LVLABELEDITTIMER);
2622
PInvokeCore
.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandleWrapper.Handle);
2907
PInvokeCore
.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandle);
2915
PInvokeCore
.SelectObject(nmcd->nmcd.hdc, _odCacheFontHandleWrapper.Handle);
3182
if (
PInvokeCore
.SendMessage(this, PInvoke.LVM_HASGROUP, (WPARAM)DefaultGroup.ID) == 0)
3201
PInvokeCore
.SendMessage(this, PInvoke.LVM_ENSUREVISIBLE, (WPARAM)index);
3319
int index = (int)
PInvokeCore
.SendMessage(
3371
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)PInvoke.LVS_EX_CHECKBOXES);
3372
PInvokeCore
.SendMessage(
3426
displayIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_FINDITEMW, (WPARAM)(lastIndex - 1), ref info);
3431
displayIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_FINDITEMW, (WPARAM)(-1) /* beginning */, ref info);
3491
int displayIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3540
int index = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
3556
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETITEMPOSITION, (WPARAM)index, ref position);
3573
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETITEMSTATE, (WPARAM)index, (LPARAM)(uint)mask);
3602
return
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3631
return
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3679
return
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETSUBITEMRECT, (WPARAM)itemIndex, ref itemrect) == 0
3710
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, handle);
3728
? (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi)
3729
: (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3799
HWND header = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETHEADER);
3935
return (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_INSERTCOLUMNW, (WPARAM)index, ref lvColumn);
3980
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
4123
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_itemCount);
4150
IntPtr result =
PInvokeCore
.SendMessage(this, PInvoke.LVM_ISGROUPVIEWENABLED);
4152
result =
PInvokeCore
.SendMessage(this, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId);
4195
insertIndex = (int)
PInvokeCore
.SendMessage(
4310
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)handle);
4519
PInvokeCore
.SendMessage(this, PInvoke.LVM_UPDATE, (WPARAM)(-1));
4538
int version = (int)
PInvokeCore
.SendMessage(this, PInvoke.CCM_GETVERSION);
4541
PInvokeCore
.SendMessage(this, PInvoke.CCM_SETVERSION, (WPARAM)5);
4547
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
4548
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor);
4554
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)
PInvokeCore
.CLR_NONE);
4560
int style = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
4562
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
4568
LIST_VIEW_ITEM_STATE_FLAGS callbackMask = (LIST_VIEW_ITEM_STATE_FLAGS)(int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETCALLBACKMASK);
4570
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETCALLBACKMASK, (WPARAM)(uint)callbackMask);
4575
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETVIEW, (WPARAM)(uint)_viewStyle);
4631
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)VirtualListSize);
4688
PInvokeCore
.SendMessage(
4701
HWND columnHeaderHandle = (HWND)
PInvokeCore
.SendMessage(
4932
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
4936
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)
PInvokeCore
.CLR_NONE);
4951
PInvokeCore
.GetClientRect(this, out RECT clientRect);
4959
PInvokeCore
.SendMessage(headerWindow, PInvoke.HDM_LAYOUT, (WPARAM)0, ref hd);
4995
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)c);
5002
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)c);
5009
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.Handle);
5014
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.Handle);
5019
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
5024
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.Handle);
5048
int retval = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_REDRAWITEMS, (WPARAM)startIndex, (LPARAM)endIndex);
5156
PInvokeCore
.SendMessage(this, PInvoke.LVM_REMOVEGROUP, (WPARAM)group.ID);
5162
PInvokeCore
.SendMessage(this, PInvoke.LVM_SCROLL, (WPARAM)0, (LPARAM)scrollY);
5203
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref backgroundImage);
5284
result =
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn);
5349
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)columnIndex, LPARAM.MAKELPARAM(width, 0));
5359
PInvokeCore
.SendMessage(
5372
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)index, LPARAM.MAKELPARAM(width, 0));
5390
PInvokeCore
.SendMessage(
5431
HWND oldHandle = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTOOLTIPS, toolTip);
5452
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5472
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5488
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMPOSITION32, (WPARAM)index, ref pt);
5508
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMSTATE, (WPARAM)index, ref lvItem);
5526
int colWidth = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETCOLUMNWIDTH);
5545
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETITEMTEXTW, (WPARAM)itemIndex, ref lvItem);
5561
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETSELECTIONMARK, (WPARAM)0, itemIndex);
5572
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)handle);
5592
PInvokeCore
.SendMessage(this, PInvoke.LVM_SORTITEMS, (WPARAM)0, (LPARAM)callbackPointer);
5605
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)handle);
5647
PInvokeCore
.SendMessage(this, PInvoke.LVM_UPDATE, (WPARAM)(-1));
5741
PInvokeCore
.SendMessage(
5852
return
PInvokeCore
.SendMessage(this, msg, (WPARAM)lParam, ref lvgroup);
5861
int retval = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_ENABLEGROUPVIEW, (WPARAM)(BOOL)GroupsEnabled);
5882
nint retval =
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
5901
int displayIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
5943
int displayIndex = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6031
PInvokeCore
.SetTextColor(nmlvcd->nmcd.hdc, ForeColor);
6386
HWND hwndHdr = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETHEADER);
6387
HFONT hFont = (HFONT)
PInvokeCore
.SendMessage(hwndHdr,
PInvokeCore
.WM_GETFONT);
6394
return (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6419
int groupID = (int)
PInvokeCore
.SendMessage(this, PInvoke.LVM_HITTEST, (WPARAM)(-1), ref lvhi);
6426
bool groupHeaderDblClicked = lvhi.flags == LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_HEADER && clickType ==
PInvokeCore
.WM_LBUTTONDBLCLK;
6428
bool chevronClicked = (lvhi.flags & LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_COLLAPSE) == LVHITTESTINFO_FLAGS.LVHT_EX_GROUP_COLLAPSE && clickType ==
PInvokeCore
.WM_LBUTTONUP;
6465
PInvokeCore
.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE);
6510
_labelEdit.AssignHandle(
PInvokeCore
.SendMessage(this, PInvoke.LVM_GETEDITCONTROL));
6896
PInvokeCore
.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, (WPARAM)0, (LPARAM)SystemInformation.MaxWindowTrackSize.Width);
6989
case
PInvokeCore
.WM_KEYUP:
7017
case
PInvokeCore
.WM_LBUTTONDBLCLK:
7024
UpdateGroupCollapse(
PInvokeCore
.WM_LBUTTONDBLCLK);
7027
case
PInvokeCore
.WM_LBUTTONDOWN:
7049
case
PInvokeCore
.WM_LBUTTONUP:
7050
case
PInvokeCore
.WM_RBUTTONUP:
7051
case
PInvokeCore
.WM_MBUTTONUP:
7054
int index = UpdateGroupCollapse(
PInvokeCore
.WM_LBUTTONUP);
7074
case
PInvokeCore
.WM_MBUTTONDBLCLK:
7077
case
PInvokeCore
.WM_MBUTTONDOWN:
7081
case
PInvokeCore
.WM_RBUTTONDBLCLK:
7084
case
PInvokeCore
.WM_RBUTTONDOWN:
7088
case
PInvokeCore
.WM_MOUSEMOVE:
7098
case
PInvokeCore
.WM_MOUSEHOVER:
7109
case
PInvokeCore
.WM_NOTIFY:
7119
case
PInvokeCore
.WM_SETFOCUS:
7137
case
PInvokeCore
.WM_MOUSELEAVE:
7144
case
PInvokeCore
.WM_PAINT:
7150
case
PInvokeCore
.WM_PRINT:
7153
case
PInvokeCore
.WM_TIMER:
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
28
PInvokeCore
.GetWindowRect(owningListView, out var rect);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (5)
202
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
226
int nextSelected = (int)
PInvokeCore
.SendMessage(
245
nextSelected = (int)
PInvokeCore
.SendMessage(
261
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_DELETEALLITEMS);
421
if (
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_DELETEITEM, (WPARAM)index) == 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
32
return (int)
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
58
int fidx = (int)
PInvokeCore
.SendMessage(
106
fidx = (int)
PInvokeCore
.SendMessage(
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (4)
32
int cnt = (int)
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
40
int fidx = (int)
PInvokeCore
.SendMessage(
94
return (int)
PInvokeCore
.SendMessage(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
129
fidx = (int)
PInvokeCore
.SendMessage(
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
421
LIST_VIEW_GROUP_STATE_FLAGS state = (LIST_VIEW_GROUP_STATE_FLAGS)(uint)
PInvokeCore
.SendMessage(
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
59
PInvokeCore
.SendMessage(_owningListView, PInvoke.LVM_GETGROUPRECT, (WPARAM)nativeGroupId, ref groupRect);
165
return (LIST_VIEW_GROUP_STATE_FLAGS)(uint)
PInvokeCore
.SendMessage(
174
if (
PInvokeCore
.SendMessage(_owningListView, PInvoke.LVM_HASGROUP, (WPARAM)_owningGroup.ID) == 0)
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (6)
57
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_GETINSERTMARKRECT, (WPARAM)0, ref bounds);
71
_color = new COLORREF((uint)
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_GETINSERTMARKCOLOR));
83
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32());
121
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_INSERTMARKHITTEST, (WPARAM)(&pt), ref lvInsertMark);
136
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_SETINSERTMARK, 0, ref lvInsertMark);
140
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32());
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
880
PInvokeCore
.SendMessage(lv, PInvoke.LVM_EDITLABELW, (WPARAM)Index);
1099
nint result =
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_ISGROUPVIEWENABLED);
1101
result =
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId);
1107
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_SETITEMW, 0, ref lvItem);
1136
PInvokeCore
.SendMessage(_listView, PInvoke.LVM_GETITEMW, 0, ref lvItem);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (3)
241
PInvokeCore
.PostMessage(ancestor,
PInvokeCore
.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_KEYMENU, (LPARAM)(int)Keys.Space);
252
if (m.Msg == (int)
PInvokeCore
.WM_MOUSEACTIVATE && (ActiveDropDowns.Count == 0))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (5)
72
bool mouseSwapped =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_SWAPBUTTON) != 0;
93
int vscreenWidth =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXVIRTUALSCREEN);
94
int vscreenHeight =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYVIRTUALSCREEN);
95
int vscreenLeft =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_XVIRTUALSCREEN);
96
int vscreenTop =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_YVIRTUALSCREEN);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (21)
400
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, 0, (nint)value);
490
if (
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)value) == 0)
624
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)value);
804
if (
PInvokeCore
.SendMessage(this, PInvoke.MCM_GETMINREQRECT, 0, ref rect) == 0)
868
int result = (int)
PInvokeCore
.SendMessage(this, PInvoke.MCM_GETTODAY, 0, ref systemTime);
1241
int maxTodayWidth = (int)
PInvokeCore
.SendMessage(this, PInvoke.MCM_GETMAXTODAYWIDTH);
1257
PInvokeCore
.SendMessage(this, PInvoke.MCM_GETMONTHRANGE, (WPARAM)(int)flag, ref times[0]);
1305
PInvokeCore
.SendMessage(this, PInvoke.MCM_HITTEST, 0, ref mchi);
1363
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)_maxSelectionCount);
1371
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETTODAY, (WPARAM)0, ref systemTime);
1390
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (WPARAM)0, (LPARAM)firstDay);
1395
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)_scrollChange);
1692
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value);
1744
if (
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETRANGE, (WPARAM)flags, ref times[0]) == 0)
1827
PInvokeCore
.SendMessage(HWND, PInvoke.MCM_SETDAYSTATE, (WPARAM)monthsCount, (LPARAM)arr);
1889
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETSELRANGE, 0, ref times[0]);
2007
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETTODAY, 0, ref systemTime);
2011
PInvokeCore
.SendMessage(this, PInvoke.MCM_SETTODAY, 0, 0);
2196
case
PInvokeCore
.WM_LBUTTONDOWN:
2204
case
PInvokeCore
.WM_GETDLGCODE:
2211
case
PInvokeCore
.WM_PAINT:
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (4)
252
bool success =
PInvokeCore
.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0;
274
bool success =
PInvokeCore
.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0;
302
PInvokeCore
.SendMessage(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo);
401
PInvokeCore
.SendMessage(owner, PInvoke.MCM_HITTEST, 0, ref hitTestInfo);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
130
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (15)
255
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)false, (LPARAM)_marqueeAnimationSpeed);
259
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)true, (LPARAM)_marqueeAnimationSpeed);
295
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
333
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
345
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32());
354
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32());
423
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETSTEP, (WPARAM)_step);
601
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
602
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETSTEP, (WPARAM)_step);
603
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETPOS, (WPARAM)_value);
604
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
605
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBARCOLOR, (WPARAM)0, (LPARAM)ForeColor);
685
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETPOS, (WPARAM)_value);
699
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32());
700
PInvokeCore
.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (10)
594
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
607
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
2378
if ((ComNativeDescriptor.IsNameDispId(obj, dispID) || dispID ==
PInvokeCore
.DISPID_Name) && obj is not null)
4261
case
PInvokeCore
.WM_UNDO:
4272
case
PInvokeCore
.WM_CUT:
4284
case
PInvokeCore
.WM_COPY:
4296
case
PInvokeCore
.WM_PASTE:
4308
case
PInvokeCore
.WM_COPYDATA:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1707
int planes =
PInvokeCore
.GetDeviceCaps(compatibleDC, GET_DEVICE_CAPS_INDEX.PLANES);
1708
int bitsPixel =
PInvokeCore
.GetDeviceCaps(compatibleDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
1709
using HBITMAP compatibleBitmap =
PInvokeCore
.CreateBitmap(rectangle.Width, rectangle.Height, (uint)planes, (uint)bitsPixel, lpBits: null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (4)
138
PInvokeCore
.SendMessage(
162
PInvokeCore
.SendMessage(this, PInvoke.TTM_UPDATE);
169
case
PInvokeCore
.WM_SHOWWINDOW:
176
case
PInvokeCore
.WM_NCHITTEST:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (34)
180
return
PInvokeCore
.SendMessage(EditTextBox,
PInvokeCore
.EM_CANUNDO) != 0;
341
&& ((WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(_editTextBox, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE)).HasFlag(WINDOW_EX_STYLE.WS_EX_RTLREADING);
1063
PInvokeCore
.SendMessage(EditTextBox,
PInvokeCore
.WM_UNDO);
1453
PInvokeCore
.SetWindowLong(_dropDownHolder, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, this);
1497
if (_dropDownHolder?.Visible == true && m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN && (Keys)(nint)m.WParamInternal != Keys.Tab)
1502
m.ResultInternal =
PInvokeCore
.SendMessage(control, m.MsgInternal, m.WParamInternal, m.LParamInternal);
2539
for (HWND hwnd =
PInvokeCore
.GetForegroundWindow(); !hwnd.IsNull; hwnd = PInvoke.GetParent(hwnd))
2610
PInvokeCore
.SendMessage(EditTextBox,
PInvokeCore
.WM_LBUTTONUP, (WPARAM)0, (LPARAM)e.Location);
3091
if (PInvoke.IsChild(
PInvokeCore
.GetForegroundWindow(), this))
3455
PInvokeCore
.SendMessage(EditTextBox,
PInvokeCore
.WM_LBUTTONDOWN, 0, PARAM.FromPoint(editPoint));
3456
PInvokeCore
.SendMessage(EditTextBox,
PInvokeCore
.WM_LBUTTONUP, (WPARAM)0, (LPARAM)editPoint);
3798
PInvokeCore
.SendMessage(toolTip, PInvoke.TTM_ADJUSTRECT, (WPARAM)1, ref rect);
4913
while (
PInvokeCore
.PeekMessage(
4916
PInvokeCore
.WM_MOUSEFIRST,
4917
PInvokeCore
.WM_MOUSELAST,
4986
while (
PInvokeCore
.PeekMessage(
4989
PInvokeCore
.WM_MOUSEFIRST,
4990
PInvokeCore
.WM_MOUSELAST,
5308
case (int)
PInvokeCore
.WM_SYSCOLORCHANGE:
5314
case (int)
PInvokeCore
.WM_SETFOCUS:
5324
case (int)
PInvokeCore
.WM_IME_STARTCOMPOSITION:
5327
PInvokeCore
.PostMessage(EditTextBox,
PInvokeCore
.WM_IME_STARTCOMPOSITION);
5330
case (int)
PInvokeCore
.WM_IME_COMPOSITION:
5332
PInvokeCore
.PostMessage(EditTextBox,
PInvokeCore
.WM_IME_COMPOSITION, m.WParamInternal, m.LParamInternal);
5335
case (int)
PInvokeCore
.WM_GETDLGCODE:
5353
case (int)
PInvokeCore
.WM_MOUSEMOVE:
5364
case (int)
PInvokeCore
.WM_NOTIFY:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
268
hWnd = (HWND)
PInvokeCore
.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
664
if (m.MsgInternal ==
PInvokeCore
.WM_ACTIVATE)
674
else if (m.MsgInternal ==
PInvokeCore
.WM_CLOSE)
684
else if (m.MsgInternal ==
PInvokeCore
.WM_DPICHANGED)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (9)
96
PInvokeCore
.PostMessage(this,
PInvokeCore
.WM_CHAR, (WPARAM)keyChar);
321
case
PInvokeCore
.WM_STYLECHANGED:
328
case
PInvokeCore
.WM_MOUSEMOVE:
336
case
PInvokeCore
.WM_DESTROY:
339
case
PInvokeCore
.WM_SHOWWINDOW:
346
case
PInvokeCore
.WM_PASTE:
354
case
PInvokeCore
.WM_GETDLGCODE:
364
case
PInvokeCore
.WM_NOTIFY:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (10)
90
PInvokeCore
.GetWindowThreadProcessId(_control, out _thisProcessId);
99
PInvokeCore
.GetCurrentThreadId());
117
case
PInvokeCore
.WM_LBUTTONDOWN:
118
case
PInvokeCore
.WM_MBUTTONDOWN:
119
case
PInvokeCore
.WM_RBUTTONDOWN:
120
case
PInvokeCore
.WM_NCLBUTTONDOWN:
121
case
PInvokeCore
.WM_NCMBUTTONDOWN:
122
case
PInvokeCore
.WM_NCRBUTTONDOWN:
123
case
PInvokeCore
.WM_MOUSEACTIVATE:
171
PInvokeCore
.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (159)
169
PInvokeCore
.SendMessage(
171
PInvokeCore
.EM_SETOPTIONS,
250
public bool CanRedo => IsHandleCreated && (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_CANREDO) != 0;
343
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_AUTOURLDETECT, (WPARAM)(BOOL)(value));
394
if (!IsHandleCreated ||
PInvokeCore
.GetWindowTextLength(this) <= 0)
465
? (RichTextBoxLanguageOptions)(int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETLANGOPTIONS)
474
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETLANGOPTIONS, 0, (nint)value);
531
int n = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETREDONAME);
578
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETTARGETDEVICE, (WPARAM)hdc, Pixel2Twip(value, true));
674
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
725
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
750
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
790
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
829
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETCHARFORMAT, PInvoke.SCF_SELECTION, ref cf);
865
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf);
924
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf2);
966
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
988
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
1014
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
1036
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
1136
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
1159
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
1183
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
1213
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPARAFORMAT, 0, ref pf);
1223
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPARAFORMAT, 0, ref pf);
1266
int n = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SELECTIONTYPE);
1293
PInvokeCore
.SendMessage(
1295
PInvokeCore
.EM_SETOPTIONS,
1360
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY);
1391
return (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETTEXTLENGTHEX, (WPARAM)(>l));
1415
int n = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETUNDONAME);
1459
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETZOOM, (WPARAM)(&numerator), ref denominator);
1607
=>
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_CANPASTE, (WPARAM)clipFormat.Id) != 0;
1838
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EXSETSEL, 0, ref chrg);
1839
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SCROLLCARET);
1917
position = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_FINDTEXT, (WPARAM)(uint)findOptions, ref ft);
1968
textLength =
PInvokeCore
.GetWindowTextLength(this);
2041
len = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETTEXTRANGE, 0, ref txrg);
2135
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2219
int index = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_CHARFROMPOS, 0, ref wpt);
2256
=> (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EXLINEFROMCHAR, 0, index);
2274
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_POSFROMCHAR, (WPARAM)(&position), index);
2349
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32());
2429
PInvokeCore
.SendMessage(
2431
PInvokeCore
.EM_SETEVENTMASK,
2444
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_AUTOURLDETECT, (WPARAM)(DetectUrls ? 1 : 0));
2455
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETBKGNDCOLOR, (WPARAM)0, (LPARAM)BackColor);
2496
PInvokeCore
.PostMessage(
2498
PInvokeCore
.EM_SETOPTIONS,
2589
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_PASTESPECIAL, (WPARAM)clipFormat.Id);
2611
public void Redo() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_REDO);
2686
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETZOOM, (WPARAM)numerator, (LPARAM)denominator);
2717
return
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf) != 0;
2725
return
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETCHARFORMAT, (WPARAM)charRange, ref cf) != 0;
2769
PInvokeCore
.SendMessage(
2771
PInvokeCore
.EM_SETCHARFORMAT,
2779
s_logPixelsX =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
2780
s_logPixelsY =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
2804
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CLEAR);
2810
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETTEXT, 0, string.Empty);
2846
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EXSETSEL, 0, ref range);
2914
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EXLIMITTEXT, 0, int.MaxValue);
2917
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_STREAMIN, (WPARAM)flags, ref es);
2936
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY, (WPARAM)(-1));
2939
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETLINECOUNT);
3017
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_STREAMOUT, (WPARAM)flags, ref es);
3053
int expectedLength = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETTEXTLENGTHEX, (WPARAM)pGtl);
3073
int actualLength = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETTEXTEX, (WPARAM)pGt, (LPARAM)b);
3111
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETOLECALLBACK, 0, (nint)oleCallback);
3114
PInvokeCore
.DragAcceptFiles(this, fAccept: false);
3125
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32());
3154
case
PInvokeCore
.WM_SETCURSOR:
3159
case
PInvokeCore
.WM_LBUTTONDOWN:
3206
int len = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETTEXTRANGE, 0, ref txrg);
3222
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EXLIMITTEXT, 0, (IntPtr)MaxLength);
3269
using (BufferScope<char> buffer = new((int)
PInvokeCore
.MAX_PATH + 1))
3273
uint length =
PInvokeCore
.DragQueryFile(endropfiles, iFile: 0, b, cch: (uint)buffer.Length);
3329
case
PInvokeCore
.EM_SETCHARFORMAT:
3341
case
PInvokeCore
.EM_SETPARAFORMAT:
3342
case
PInvokeCore
.EM_REPLACESEL:
3345
case
PInvokeCore
.EM_STREAMIN:
3356
case
PInvokeCore
.WM_COPY:
3357
case
PInvokeCore
.WM_SETTEXT:
3358
case
PInvokeCore
.EM_EXLIMITTEXT:
3403
LRESULT compMode =
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETIMECOMPMODE);
3406
int textLength =
PInvokeCore
.GetWindowTextLength(this);
3409
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_KILLFOCUS);
3410
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETFOCUS);
3411
PInvokeCore
.PostMessage(this,
PInvokeCore
.EM_SETSEL, (WPARAM)(selEnd - 1), (LPARAM)selEnd);
3456
case
PInvokeCore
.WM_SETCURSOR:
3478
case
PInvokeCore
.WM_SETFONT:
3482
case
PInvokeCore
.WM_IME_NOTIFY:
3487
case
PInvokeCore
.WM_GETDLGCODE:
3492
case
PInvokeCore
.WM_GETOBJECT:
3506
case
PInvokeCore
.WM_RBUTTONUP:
3517
case
PInvokeCore
.WM_VSCROLL:
3533
case
PInvokeCore
.WM_HSCROLL:
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
176
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\Splitter\Splitter.SplitterMessageFilter.cs (3)
21
if (m.MsgInternal <
PInvokeCore
.WM_KEYFIRST || m.MsgInternal >
PInvokeCore
.WM_KEYLAST)
26
if (m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.Escape)
System\Windows\Forms\Controls\TabControl\TabControl.cs (23)
386
PInvokeCore
.SendMessage(this, PInvoke.TCM_ADJUSTRECT, 0, ref rect);
480
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, handle);
650
=> (int)
PInvokeCore
.SendMessage(this, PInvoke.TCM_GETROWCOUNT);
664
get => IsHandleCreated ? (int)
PInvokeCore
.SendMessage(this, PInvoke.TCM_GETCURSEL) : _selectedIndex;
692
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)value);
936
PInvokeCore
.PostMessage(this, _tabBaseReLayoutMessage);
944
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETITEMSIZE, 0, PARAM.FromLowHigh(_itemSize.Width, _itemSize.Height));
1127
PInvokeCore
.SendMessage(this, PInvoke.TCM_GETITEMRECT, (WPARAM)index, ref rect);
1147
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, ImageList!.Handle);
1246
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETPADDING, 0, PARAM.FromPoint(_padding));
1255
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, _imageList.Handle);
1260
HWND tooltipHwnd = (HWND)
PInvokeCore
.SendMessage(this, PInvoke.TCM_GETTOOLTIPS);
1308
PInvokeCore
.EnumChildWindows(this, StyleChildren);
1565
PInvokeCore
.SendMessage(this, PInvoke.TCM_DELETEALLITEMS);
1600
PInvokeCore
.SendMessage(this, (PInvoke.TCM_DELETEALLITEMS));
1618
PInvokeCore
.SendMessage(this, PInvoke.TCM_DELETEITEM, (WPARAM)index);
1654
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETTOOLTIPS, (WPARAM)toolTip.Handle);
1673
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)index);
2002
PInvokeCore
.SendMessage(this, PInvoke.TCM_SETCURSEL, (WPARAM)_lastSelection);
2049
while (
PInvokeCore
.PeekMessage(
2076
case
PInvokeCore
.WM_NOTIFY:
2122
PInvokeCore
.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
2162
return (int)
PInvokeCore
.SendMessage(this, msg, (WPARAM)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (19)
1099
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPASSWORDCHAR, (WPARAM)pwdChar);
2452
if (m.Msg ==
PInvokeCore
.WM_CHAR && ImeWmCharsToIgnore > 0)
2907
case
PInvokeCore
.WM_PRINT:
2910
case
PInvokeCore
.WM_CONTEXTMENU:
2911
case (int)
PInvokeCore
.EM_CANUNDO:
2916
case (int)
PInvokeCore
.EM_SCROLLCARET: // No scroll for single-line control.
2917
case (int)
PInvokeCore
.EM_LIMITTEXT: // Max/Min text is defined by the mask.
2918
case (int)
PInvokeCore
.EM_UNDO:
2919
case
PInvokeCore
.WM_UNDO:
2934
case
PInvokeCore
.WM_IME_STARTCOMPOSITION:
2942
case
PInvokeCore
.WM_IME_ENDCOMPOSITION:
2946
case
PInvokeCore
.WM_IME_COMPOSITION:
2954
case
PInvokeCore
.WM_CUT:
2962
case
PInvokeCore
.WM_COPY:
2966
case
PInvokeCore
.WM_PASTE:
2970
case
PInvokeCore
.WM_CLEAR:
2974
case
PInvokeCore
.WM_KILLFOCUS:
2979
case
PInvokeCore
.WM_SETFOCUS:
System\Windows\Forms\Controls\TextBox\TextBox.cs (9)
347
return (char)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETPASSWORDCHAR);
359
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPASSWORDCHAR, (WPARAM)value);
619
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETPASSWORDCHAR, (WPARAM)_passwordChar);
918
case
PInvokeCore
.WM_LBUTTONDOWN:
930
case
PInvokeCore
.WM_PAINT:
967
case
PInvokeCore
.WM_PRINT:
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (70)
277
[DispId(
PInvokeCore
.DISPID_BACKCOLOR)]
350
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
394
public bool CanUndo => IsHandleCreated && (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_CANUNDO) != 0;
500
[DispId(
PInvokeCore
.DISPID_FORECOLOR)]
672
bool curState = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETMODIFY) != 0;
694
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY, (WPARAM)(BOOL)value);
886
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETSEL, (WPARAM)(&startResult), ref end);
942
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETREADONLY, (WPARAM)(BOOL)value);
1010
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LIMITTEXT);
1014
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_REPLACESEL, 0, text);
1017
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY);
1022
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_REPLACESEL, (WPARAM)(-1), text);
1026
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LIMITTEXT, (WPARAM)_maxLength);
1094
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY);
1105
=> IsHandleCreated ?
PInvokeCore
.GetWindowTextLength(this) : Text.Length;
1284
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_EMPTYUNDOBUFFER);
1297
public void Copy() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_COPY);
1322
public void Cut() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CUT);
1393
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMODIFY, (WPARAM)(BOOL)true);
1417
public void Paste() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_PASTE);
1573
int index = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt));
1603
public virtual int GetLineFromCharIndex(int index) => (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LINEFROMCHAR, (WPARAM)index);
1615
int i = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_POSFROMCHAR, (WPARAM)index);
1626
return (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LINEINDEX, (WPARAM)lineNumber);
1632
public int GetFirstCharIndexOfCurrentLine() => (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LINEINDEX, (WPARAM)(-1));
1654
if (
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETOLEINTERFACE, 0, (void**)richEdit) == 0)
1656
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SCROLLCARET);
1683
int firstVisibleLine = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_GETFIRSTVISIBLELINE);
1700
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SCROLLCARET);
1755
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETSEL, (WPARAM)start, (LPARAM)end);
1868
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETSEL, (WPARAM)start, (LPARAM)end);
1991
public void Undo() =>
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_UNDO);
1997
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_LIMITTEXT, (WPARAM)_maxLength);
2003
if (msg ==
PInvokeCore
.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor())
2038
PInvokeCore
.SendMessage(this,
PInvokeCore
.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
2090
case
PInvokeCore
.WM_LBUTTONDBLCLK:
2097
case
PInvokeCore
.WM_GETDLGCODE:
2100
case
PInvokeCore
.WM_SETFONT:
2103
case
PInvokeCore
.WM_CONTEXTMENU:
2118
case
PInvokeCore
.WM_DESTROY:
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (15)
45
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_GETSEL, ref start, ref end);
110
if (
PInvokeCore
.MapWindowPoints((HWND)default, Owner, ref clientLocation) == 0)
210
? (int)
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_GETFIRSTVISIBLELINE)
235
? (int)
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_GETLINECOUNT)
301
? (int)
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_LINEINDEX, (WPARAM)line)
402
&&
PInvokeCore
.SendMessage(
404
PInvokeCore
.EM_LINESCROLL,
427
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_SETSEL, (WPARAM)start, (LPARAM)end);
441
PInvokeCore
.SendMessage(Owner,
PInvokeCore
.EM_GETRECT, (WPARAM)0, ref rectangle);
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (6)
30
_cachedItemHDC =
PInvokeCore
.CreateCompatibleDC(toolStripHDC);
34
_cachedItemBitmap =
PInvokeCore
.CreateCompatibleBitmap(toolStripHDC, bitmapSize.Width, bitmapSize.Height);
35
HGDIOBJ oldBitmap =
PInvokeCore
.SelectObject(_cachedItemHDC, _cachedItemBitmap);
40
PInvokeCore
.DeleteObject(oldBitmap);
56
PInvokeCore
.DeleteObject(_cachedItemBitmap);
59
PInvokeCore
.DeleteDC(_cachedItemHDC);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (4)
564
if ((m.Msg == (int)
PInvokeCore
.WM_NCHITTEST) && SizingGrip)
580
PInvokeCore
.GetClientRect(rootHwnd, out RECT rootHwndClientArea);
587
PInvokeCore
.MapWindowPoints(this, rootHwnd, ref gripLocation);
628
if (m.MsgInternal ==
PInvokeCore
.WM_NCHITTEST)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (10)
1662
[DispId(
PInvokeCore
.DISPID_TABSTOP)]
2656
PInvokeCore
.SendMessage(
2658
PInvokeCore
.WM_PRINT,
2663
PInvokeCore
.BitBlt(
3551
PInvokeCore
.BitBlt(
3569
PInvokeCore
.BitBlt(
4584
if (m.MsgInternal ==
PInvokeCore
.WM_SETFOCUS)
4592
if (!AllowClickThrough && m.MsgInternal ==
PInvokeCore
.WM_MOUSEACTIVATE)
4642
if (AllowClickThrough && m.MsgInternal ==
PInvokeCore
.WM_MOUSEACTIVATE && m.ResultInternal == PInvoke.MA_ACTIVATEANDEAT)
4647
if (m.Msg == (int)
PInvokeCore
.WM_NCDESTROY)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (6)
28
case
PInvokeCore
.WM_LBUTTONDOWN:
29
case
PInvokeCore
.WM_RBUTTONDOWN:
30
case
PInvokeCore
.WM_MBUTTONDOWN:
31
case
PInvokeCore
.WM_NCLBUTTONDOWN:
32
case
PInvokeCore
.WM_NCRBUTTONDOWN:
33
case
PInvokeCore
.WM_NCMBUTTONDOWN:
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (7)
1431
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ToolStripManager.ModalMenuFilter.ActiveHwnd);
1438
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, DropDownOwnerWindow);
1581
HWND foregroundWindow =
PInvokeCore
.GetForegroundWindow();
1892
case
PInvokeCore
.WM_NCACTIVATE:
1899
case
PInvokeCore
.WM_ACTIVATE:
1984
PInvokeCore
.SendMessage(activeWindow,
PInvokeCore
.WM_NCACTIVATE, (WPARAM)(BOOL)true, (LPARAM)(-1));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
176
HRESULT hr =
PInvokeCore
.RegisterDragDrop(_owner, new DropTarget(this));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2195
if (
PInvokeCore
.DoDragDrop(dataObjectScope, dropSource, (DROPEFFECT)(uint)allowedEffects, out finalEffect).Failed)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
727
if (m.Msg == (int)
PInvokeCore
.WM_SYSKEYDOWN)
933
HWND foregroundWindow =
PInvokeCore
.GetForegroundWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (19)
331
PInvokeCore
.MapWindowPoints(hwndMouseMessageIsFrom, activeToolStrip, ref translatedLocation);
505
else if (m.Msg is >= ((int)
PInvokeCore
.WM_NCLBUTTONDOWN) and <= ((int)
PInvokeCore
.WM_NCMBUTTONDBLCLK))
571
case
PInvokeCore
.WM_MOUSEMOVE:
572
case
PInvokeCore
.WM_NCMOUSEMOVE:
611
case
PInvokeCore
.WM_LBUTTONDOWN:
612
case
PInvokeCore
.WM_RBUTTONDOWN:
613
case
PInvokeCore
.WM_MBUTTONDOWN:
618
case
PInvokeCore
.WM_NCLBUTTONDOWN:
619
case
PInvokeCore
.WM_NCRBUTTONDOWN:
620
case
PInvokeCore
.WM_NCMBUTTONDOWN:
626
case
PInvokeCore
.WM_KEYDOWN:
627
case
PInvokeCore
.WM_KEYUP:
628
case
PInvokeCore
.WM_CHAR:
629
case
PInvokeCore
.WM_DEADCHAR:
630
case
PInvokeCore
.WM_SYSKEYDOWN:
631
case
PInvokeCore
.WM_SYSKEYUP:
632
case
PInvokeCore
.WM_SYSCHAR:
633
case
PInvokeCore
.WM_SYSDEADCHAR:
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (2)
70
PInvokeCore
.GetCurrentThreadId());
93
msg->message =
PInvokeCore
.WM_NULL;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (4)
783
PInvokeCore
.PostMessage(_targetWindowHandle,
PInvokeCore
.WM_SYSCOMMAND, (WPARAM)(uint)_nativeMenuCommandID);
790
PInvokeCore
.PostMessage(_targetWindowHandle,
PInvokeCore
.WM_COMMAND, (WPARAM)(uint)_nativeMenuCommandID);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (4)
52
while (
PInvokeCore
.PeekMessage(
55
PInvokeCore
.WM_PAINT,
56
PInvokeCore
.WM_PAINT,
103
if (m.MsgInternal ==
PInvokeCore
.WM_NCHITTEST)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (2)
40
if (m.Msg is >= ((int)
PInvokeCore
.WM_KEYFIRST) and <= ((int)
PInvokeCore
.WM_KEYLAST))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
215
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (3)
40
PInvokeCore
.GetClientRect(this, out var clientRect);
125
PInvokeCore
.CombineRgn(hNonClientRegion, hTotalRegion, hClientRegion, RGN_COMBINE_MODE.RGN_XOR);
273
if (m.MsgInternal ==
PInvokeCore
.WM_NCPAINT)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (17)
295
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETPAGESIZE, 0, value);
425
int cyhscroll =
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYHSCROLL);
440
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum);
498
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETLINESIZE, 0, value);
582
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETTICFREQ, (WPARAM)value);
797
PInvokeCore
.SendMessage(this, PInvoke.TBM_CLEARTICS, (WPARAM)1, (LPARAM)0);
800
LRESULT lresult =
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETTIC, lParam: (IntPtr)i);
820
_value = (int)
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_USER);
864
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum);
865
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)false, (LPARAM)_maximum);
868
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETTICFREQ, (WPARAM)_tickFrequency);
875
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETPAGESIZE, (WPARAM)0, (LPARAM)_largeChange);
876
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETLINESIZE, (WPARAM)0, (LPARAM)_smallChange);
1063
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum);
1064
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum);
1122
PInvokeCore
.SendMessage(this, PInvoke.TBM_SETPOS, (WPARAM)(BOOL)true, (LPARAM)reflectedValue);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (23)
241
if (
PInvokeCore
.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) == 0)
270
if (
PInvokeCore
.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 0, ref rc) == 0)
313
PInvokeCore
.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item);
337
PInvokeCore
.SendMessage(_treeView, PInvoke.TVM_GETITEMW, 0, ref item);
628
bool visible =
PInvokeCore
.SendMessage(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0;
702
LRESULT next =
PInvokeCore
.SendMessage(
860
LRESULT prev =
PInvokeCore
.SendMessage(
972
PInvokeCore
.SendMessage(tv, PInvoke.TVM_GETITEMW, 0, ref item);
1290
PInvokeCore
.SendMessage(tv, PInvoke.TVM_EDITLABELW, 0, (LPARAM)HTREEITEMInternal);
1473
PInvokeCore
.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_COLLAPSE, (LPARAM)Handle);
1592
PInvokeCore
.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)cancel);
1661
PInvokeCore
.SendMessage(tv, PInvoke.TVM_ENSUREVISIBLE, 0, Handle);
1679
PInvokeCore
.SendMessage(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_EXPAND, (LPARAM)Handle);
1877
nint editHandle =
PInvokeCore
.SendMessage(tv, PInvoke.TVM_GETEDITCONTROL);
1882
PInvokeCore
.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)false);
1885
HTREEITEMInternal = (HTREEITEM)
PInvokeCore
.SendMessage(tv, PInvoke.TVM_INSERTITEMW, 0, ref tvis);
1895
PInvokeCore
.PostMessage(tv, PInvoke.TVM_EDITLABELW, default, (LPARAM)HTREEITEMInternal);
1907
PInvokeCore
.SendMessage(tv,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
1984
PInvokeCore
.SendMessage(tv, PInvoke.TVM_DELETEITEM, 0, (LPARAM)HTREEITEMInternal);
2032
PInvokeCore
.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item);
2180
PInvokeCore
.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item);
2215
PInvokeCore
.SendMessage(tv, PInvoke.TVM_SETITEMW, 0, ref item);
System\Windows\Forms\Controls\TreeView\TreeView.cs (86)
201
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETBKCOLOR, 0, BackColor.ToWin32());
206
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent);
248
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
318
int currentStyle = unchecked((int)((long)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)));
449
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETTEXTCOLOR, 0, ForeColor.ToWin32());
631
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, value is null ? 0 : value.Handle);
744
return (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETINDENT);
759
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)value);
760
_indent = (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETINDENT);
782
return (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT);
817
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)value);
818
_itemHeight = (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT);
861
int intColor = (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETLINECOLOR);
874
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32());
1093
IntPtr hItem =
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_CARET);
1120
PInvokeCore
.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_CARET, (LPARAM)hnode);
1306
IntPtr hitem =
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE);
1322
PInvokeCore
.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE, (LPARAM)hnode);
1342
public int VisibleCount => IsHandleCreated ? (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETVISIBLECOUNT) : 0;
1602
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
1605
PInvokeCore
.PostMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
1609
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
1625
PInvokeCore
.SendMessage(toolTip, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
1626
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETTOOLTIPS, (WPARAM)toolTip.Handle);
1645
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
1686
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
1695
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, handle);
1859
int version = (int)
PInvokeCore
.SendMessage(this, PInvoke.CCM_GETVERSION);
1862
PInvokeCore
.SendMessage(this, PInvoke.CCM_SETVERSION, 5);
1872
int style = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
1874
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
1879
int style = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
1881
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
1888
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETBKCOLOR, 0, c.ToWin32());
1895
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETTEXTCOLOR, 0, c.ToWin32());
1902
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32());
1907
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, _imageList.Handle);
1917
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)_indent);
1922
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)ItemHeight);
1992
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)newImageList.Handle);
2002
IntPtr handleOld =
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)handle);
2013
IntPtr handle =
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE);
2019
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE);
2066
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2548
if (
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0)
2579
_labelEdit.AssignHandle(
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETEDITCONTROL));
2649
PInvokeCore
.SendMessage(this,
2687
PInvokeCore
.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE);
2798
PInvokeCore
.SelectObject(nmtvcd->nmcd.hdc, renderinfo.FontHandle);
2926
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2932
PInvokeCore
.SendMessage(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds);
2957
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3034
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3064
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)PInvoke.GetMessagePos());
3116
PInvokeCore
.PostMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE, (LPARAM)treeNode.Handle);
3129
PInvokeCore
.SendMessage(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE);
3163
case
PInvokeCore
.WM_WINDOWPOSCHANGING:
3164
case
PInvokeCore
.WM_NCCALCSIZE:
3165
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
3166
case
PInvokeCore
.WM_SIZE:
3178
case
PInvokeCore
.WM_HSCROLL:
3187
case
PInvokeCore
.WM_PRINT:
3206
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETITEMW, 0, ref item1);
3214
case
PInvokeCore
.WM_NOTIFY:
3220
PInvokeCore
.SendMessage(nmhdr->hwndFrom, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
3245
case
PInvokeCore
.WM_LBUTTONDBLCLK:
3257
case
PInvokeCore
.WM_LBUTTONDOWN:
3275
_mouseDownNode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3303
case
PInvokeCore
.WM_LBUTTONUP:
3304
case
PInvokeCore
.WM_RBUTTONUP:
3312
nint hnode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
3354
case
PInvokeCore
.WM_MBUTTONDBLCLK:
3359
case
PInvokeCore
.WM_MBUTTONDOWN:
3365
case
PInvokeCore
.WM_MOUSELEAVE:
3371
case
PInvokeCore
.WM_RBUTTONDBLCLK:
3383
case
PInvokeCore
.WM_RBUTTONDOWN:
3393
_mouseDownNode =
PInvokeCore
.SendMessage(this, PInvoke.TVM_HITTEST, 0, ref tvhit);
3398
case
PInvokeCore
.WM_SYSCOLORCHANGE:
3399
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent);
3402
case
PInvokeCore
.WM_SETFOCUS:
3418
case
PInvokeCore
.WM_CONTEXTMENU:
3448
case
PInvokeCore
.WM_GETOBJECT:
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
178
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
940
case
PInvokeCore
.WM_SETFOCUS:
963
case
PInvokeCore
.WM_KILLFOCUS:
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (4)
512
int dispid =
PInvokeCore
.DISPID_UNKNOWN;
515
hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1,
PInvokeCore
.GetThreadLocale(), &dispid);
516
if (!hr.Succeeded || dispid ==
PInvokeCore
.DISPID_UNKNOWN)
544
PInvokeCore
.GetThreadLocale(),
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (4)
581
int dispid =
PInvokeCore
.DISPID_UNKNOWN;
585
hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1,
PInvokeCore
.GetThreadLocale(), &dispid);
586
if (!hr.Succeeded || dispid ==
PInvokeCore
.DISPID_UNKNOWN)
614
PInvokeCore
.GetThreadLocale(),
System\Windows\Forms\Controls\WebBrowser\HtmlToClrEventProxy.cs (3)
67
*pid =
PInvokeCore
.DISPID_UNKNOWN;
81
case
PInvokeCore
.DISPID_UNKNOWN:
91
*pid =
PInvokeCore
.DISPID_UNKNOWN;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1377
case
PInvokeCore
.WM_CONTEXTMENU:
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (2)
165
if (lpMsg->message !=
PInvokeCore
.WM_CHAR && Enum.IsDefined((Shortcut)keyCode))
192
if (dispid !=
PInvokeCore
.DISPID_READYSTATE)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (23)
334
message =
PInvokeCore
.WM_SYSKEYDOWN,
368
case
PInvokeCore
.WM_ERASEBKGND:
370
case
PInvokeCore
.WM_SETCURSOR:
371
case
PInvokeCore
.WM_SYSCOLORCHANGE:
372
case
PInvokeCore
.WM_LBUTTONDBLCLK:
373
case
PInvokeCore
.WM_LBUTTONUP:
374
case
PInvokeCore
.WM_MBUTTONDBLCLK:
375
case
PInvokeCore
.WM_MBUTTONUP:
376
case
PInvokeCore
.WM_RBUTTONDBLCLK:
377
case
PInvokeCore
.WM_RBUTTONUP:
378
case
PInvokeCore
.WM_CONTEXTMENU:
382
case
PInvokeCore
.WM_DRAWITEM:
386
case
PInvokeCore
.WM_COMMAND:
394
case
PInvokeCore
.WM_HELP:
400
case
PInvokeCore
.WM_LBUTTONDOWN:
401
case
PInvokeCore
.WM_MBUTTONDOWN:
402
case
PInvokeCore
.WM_RBUTTONDOWN:
403
case
PInvokeCore
.WM_MOUSEACTIVATE:
415
case
PInvokeCore
.WM_DESTROY:
531
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_FONT);
541
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_FORECOLOR);
551
AmbientChanged(
PInvokeCore
.DISPID_AMBIENT_BACKCOLOR);
841
HRESULT hr =
PInvokeCore
.CoCreateInstance(
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.WebBrowserBaseNativeWindow.cs (1)
29
case
PInvokeCore
.WM_WINDOWPOSCHANGING:
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (2)
69
s_logPixelsX =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
84
s_logPixelsY =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (16)
69
HBITMAP hbitmapTemp =
PInvokeCore
.CreateBitmap(8, 8, 1, 1, patternBits);
82
PInvokeCore
.DeleteObject(hbitmapTemp);
112
PInvokeCore
.SetBkMode(dc, BACKGROUND_MODE.TRANSPARENT);
116
PInvokeCore
.SetBkColor(dc, backColor);
131
PInvokeCore
.SetTextColor(dc, textColor);
160
savedColor =
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight));
171
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlDark));
181
PInvokeCore
.SetBkColor(dc, savedColor);
189
int itemHeight = (int)
PInvokeCore
.SendMessage(this, PInvoke.TVM_GETITEMHEIGHT);
191
PInvokeCore
.SendMessage(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)itemHeight);
255
PInvokeCore
.DeleteObject(_hbrushDither);
262
HGDIOBJ hbrushOld =
PInvokeCore
.SelectObject(dc, _hbrushDither);
266
COLORREF oldTextColor =
PInvokeCore
.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight));
267
COLORREF oldBackColor =
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control));
270
PInvokeCore
.SetTextColor(dc, oldTextColor);
271
PInvokeCore
.SetBkColor(dc, oldBackColor);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (10)
17
private const int CDM_SETDEFAULTFOCUS = (int)
PInvokeCore
.WM_USER + 0x51;
66
if (msg == (int)
PInvokeCore
.WM_INITDIALOG)
75
else if (msg == (int)
PInvokeCore
.WM_SETFOCUS)
77
PInvokeCore
.PostMessage((HWND)hWnd, CDM_SETDEFAULTFOCUS);
97
PInvokeCore
.GetWindowRect(hwnd, out var r);
146
return
PInvokeCore
.CallWindowProc((void*)_priorWindowProcedure, (HWND)hWnd, (uint)msg, (nuint)wparam, lparam);
215
if (s_helpMessage ==
PInvokeCore
.WM_NULL)
225
_priorWindowProcedure =
PInvokeCore
.SetWindowLong(
243
nint currentSubClass =
PInvokeCore
.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
246
PInvokeCore
.SetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (5)
154
private protected string DialogCaption =>
PInvokeCore
.GetWindowText(_dialogHWnd);
494
if (msg != (int)
PInvokeCore
.WM_NOTIFY)
511
int sizeNeeded = (int)
PInvokeCore
.SendMessage(_dialogHWnd, PInvoke.CDM_GETSPEC);
549
PInvokeCore
.SetWindowLong((HWND)hWnd, 0, -1);
556
PInvokeCore
.SetWindowLong((HWND)hWnd, 0, -1);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (5)
290
PInvokeCore
.CoCreateInstance(
498
PInvokeCore
.SendMessage(hwnd, PInvoke.BFFM_SETEXPANDED, (WPARAM)(BOOL)true, instance._initialDirectory);
504
PInvokeCore
.SendMessage(hwnd, PInvoke.BFFM_SETSELECTIONW, (WPARAM)(BOOL)true, instance.SelectedPath);
514
using BufferScope<char> buffer = new(stackalloc char[(int)
PInvokeCore
.MAX_PATH + 1]);
518
PInvokeCore
.SendMessage(hwnd, PInvoke.BFFM_ENABLEOK, 0, (nint)(BOOL)isFileSystemFolder);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (4)
306
case
PInvokeCore
.WM_COMMAND:
313
PInvokeCore
.SendMessage((HWND)hWnd,
PInvokeCore
.WM_CHOOSEFONT_GETLOGFONT, (WPARAM)0, ref logFont);
343
case
PInvokeCore
.WM_INITDIALOG:
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
168
HRESULT hr =
PInvokeCore
.CoCreateInstance(
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (1)
166
HRESULT hr =
PInvokeCore
.CoCreateInstance(
System\Windows\Forms\Dialogs\MessageBox.cs (2)
491
PInvokeCore
.SendMessage(handle,
PInvokeCore
.WM_SETFOCUS);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (5)
68
private const uint ContinueButtonClickHandlingMessage =
PInvokeCore
.WM_APP + 0x3FFF;
247
PInvokeCore
.GetWindowThreadProcessId(_handle, out _) !=
PInvokeCore
.GetCurrentThreadId();
1046
if (
PInvokeCore
.PostMessage(hWnd, ContinueButtonClickHandlingMessage))
1671
PInvokeCore
.SendMessage(
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
202
PInvokeCore
.DestroyIcon(handle);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (10)
121
PInvokeCore
.SendMessage(
131
PInvokeCore
.SendMessage(_tipWindow, PInvoke.TTM_SETDELAYTIME, (WPARAM)PInvoke.TTDT_INITIAL);
172
PInvokeCore
.SetMapMode(hdc, HDC_MAP_MODE.MM_ANISOTROPIC);
177
PInvokeCore
.GetViewportOrgEx(hdc, &originalOrigin);
196
PInvokeCore
.DrawIconEx(
401
if (m.Msg == (int)
PInvokeCore
.WM_GETOBJECT && m.LParamInternal == PInvoke.UiaRootObjectId)
425
case
PInvokeCore
.WM_GETOBJECT:
428
case
PInvokeCore
.WM_NOTIFY:
436
case
PInvokeCore
.WM_ERASEBKGND:
438
case
PInvokeCore
.WM_PAINT:
System\Windows\Forms\Form.cs (72)
287
public static Form? ActiveForm => FromHandle(
PInvokeCore
.GetForegroundWindow()) as Form;
315
IntPtr hwnd =
PInvokeCore
.SendMessage(_ctlClient,
PInvokeCore
.WM_MDIGETACTIVE);
654
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
1599
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, cp.ExStyle);
1985
[DispId(
PInvokeCore
.DISPID_TABSTOP)]
2185
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SHOWWINDOW, (WPARAM)(BOOL)value);
2843
PInvokeCore
.SendMessage(MdiParentInternal.MdiClient,
PInvokeCore
.WM_MDIACTIVATE, (WPARAM)HWND);
3121
PInvokeCore
.GetClientRect(this, out RECT currentClient);
3148
PInvokeCore
.GetClientRect(this, out currentClient);
3266
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_CLOSE);
3422
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, TaskbarOwner);
3429
PInvokeCore
.SendMessage(TaskbarOwner,
PInvokeCore
.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
3789
PInvokeCore
.SendMessage(MdiParentInternal.MdiClient,
PInvokeCore
.WM_MDIACTIVATE, this);
3927
HWND ownerHandle = (HWND)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
3933
PInvokeCore
.GetWindowRect(ownerHandle, out var ownerRect);
3982
hWndOwner = (HWND)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
4410
&&
PInvokeCore
.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETSNAPTODEFBUTTON, ref data)
4942
PInvokeCore
.EnumCurrentThreadWindows(callback.Callback);
5154
PInvokeCore
.SendMessage(MdiParentInternal.MdiClient,
PInvokeCore
.WM_MDIACTIVATE, (WPARAM)HWND);
5509
if (
PInvokeCore
.GetWindowLong(ownerHwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == HWND)
5515
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd);
5705
PInvokeCore
.SendMessage(captureHwnd,
PInvokeCore
.WM_CANCELMODE);
5736
if (
PInvokeCore
.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == Handle)
5755
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd);
6120
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd);
6193
PInvokeCore
.SendMessage(_ctlClient,
PInvokeCore
.WM_MDISETMENU, (WPARAM)dummyMenu.Value);
6456
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL, (LPARAM)_smallIcon.Handle);
6459
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
6463
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL);
6464
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETICON, (WPARAM)PInvoke.ICON_BIG);
6665
if (m.Msg != (int)
PInvokeCore
.WM_ENDSESSION)
6744
if (m.MsgInternal ==
PInvokeCore
.WM_QUERYENDSESSION)
6766
if (m.Msg != (int)
PInvokeCore
.WM_QUERYENDSESSION)
7123
case
PInvokeCore
.WM_NCACTIVATE:
7126
case
PInvokeCore
.WM_NCLBUTTONDOWN:
7127
case
PInvokeCore
.WM_NCRBUTTONDOWN:
7128
case
PInvokeCore
.WM_NCMBUTTONDOWN:
7129
case
PInvokeCore
.WM_NCXBUTTONDOWN:
7132
case
PInvokeCore
.WM_ACTIVATE:
7135
case
PInvokeCore
.WM_MDIACTIVATE:
7138
case
PInvokeCore
.WM_CLOSE:
7147
case
PInvokeCore
.WM_QUERYENDSESSION:
7148
case
PInvokeCore
.WM_ENDSESSION:
7152
case
PInvokeCore
.WM_ENTERSIZEMOVE:
7156
case
PInvokeCore
.WM_EXITSIZEMOVE:
7160
case
PInvokeCore
.WM_CREATE:
7163
case
PInvokeCore
.WM_ERASEBKGND:
7167
case
PInvokeCore
.WM_NCDESTROY:
7170
case
PInvokeCore
.WM_NCHITTEST:
7173
case
PInvokeCore
.WM_SHOWWINDOW:
7176
case
PInvokeCore
.WM_SIZE:
7179
case
PInvokeCore
.WM_SYSCOMMAND:
7182
case
PInvokeCore
.WM_GETMINMAXINFO:
7185
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
7191
case
PInvokeCore
.WM_ENTERMENULOOP:
7194
case
PInvokeCore
.WM_EXITMENULOOP:
7197
case
PInvokeCore
.WM_CAPTURECHANGED:
7210
case
PInvokeCore
.WM_GETDPISCALEDSIZE:
7213
case
PInvokeCore
.WM_DPICHANGED:
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (3)
25
HWND parent = (HWND)
PInvokeCore
.GetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
44
nint oldValue =
PInvokeCore
.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, 0);
57
PInvokeCore
.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, ownerHwnd);
System\Windows\Forms\Help\Help.cs (1)
224
Span<char> buffer = stackalloc char[(int)
PInvokeCore
.MAX_PATH + 1];
System\Windows\Forms\Input\Cursor.cs (10)
172
using ICONINFO info =
PInvokeCore
.GetIconInfo(this);
225
return (nint)
PInvokeCore
.CopyCursor(this, sz.Width, sz.Height, IMAGE_FLAGS.LR_DEFAULTCOLOR);
306
PInvokeCore
.DrawIcon(dc, targetX, targetY, this);
322
PInvokeCore
.DrawIcon(dc, targetX, targetY, this);
335
PInvokeCore
.DrawIconEx(
379
using ICONINFO info =
PInvokeCore
.GetIconInfo(iconHandle);
382
PInvokeCore
.GetObject(info.hbmColor, out BITMAP bitmap);
387
PInvokeCore
.GetObject(info.hbmMask, out BITMAP bitmap);
406
PInvokeCore
.OleCreatePictureIndirect(lpPictDesc: null, IID.Get<IPicture>(), fOwn: true, picture).ThrowOnFailure();
421
_handle = (HCURSOR)
PInvokeCore
.CopyImage(
System\Windows\Forms\Input\InputLanguage.cs (1)
63
PInvokeCore
.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETDEFAULTINPUTLANG, ref handle);
System\Windows\Forms\Internal\Win32WindowExtensions.cs (1)
10
WINDOW_EX_STYLE style = (WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
161
string windowText =
PInvokeCore
.GetWindowText(hwnd);
286
PInvokeCore
.MapWindowPoints(fromControl, toControl, ref point);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
688
PInvokeCore
.GetClientRect(this, out RECT clientRectangle);
2026
case
PInvokeCore
.WM_SETFOCUS:
System\Windows\Forms\Layout\Containers\SplitContainer.cs (8)
235
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
452
PInvokeCore
.GetWindowRect(this, out var r);
455
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
817
[DispId(
PInvokeCore
.DISPID_TABSTOP)]
2403
case
PInvokeCore
.WM_SETCURSOR:
2406
case
PInvokeCore
.WM_SETFOCUS:
2410
case
PInvokeCore
.WM_KILLFOCUS:
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerMessageFilter.cs (4)
19
if (m.MsgInternal <
PInvokeCore
.WM_KEYFIRST || m.MsgInternal >
PInvokeCore
.WM_KEYLAST)
24
if ((m.MsgInternal ==
PInvokeCore
.WM_KEYDOWN && (Keys)(nint)m.WParamInternal == Keys.Escape)
25
|| (m.MsgInternal ==
PInvokeCore
.WM_SYSKEYDOWN))
System\Windows\Forms\MDI\MDIClient.cs (12)
150
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_MDICASCADE);
153
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_VERTICAL);
156
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_HORIZONTAL);
159
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_MDIICONARRANGE);
300
if (
PInvokeCore
.CombineRgn(rgn1, rgn1, rgn2, RGN_COMBINE_MODE.RGN_DIFF) == GDI_REGION_TYPE.RGN_ERROR)
330
case
PInvokeCore
.WM_CREATE:
338
case
PInvokeCore
.WM_SETFOCUS:
362
case
PInvokeCore
.WM_KILLFOCUS:
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
80
HICON hIcon = (HICON)
PInvokeCore
.SendMessage(GetSafeHandle(_target),
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
System\Windows\Forms\NativeWindow.cs (26)
107
uint id =
PInvokeCore
.GetWindowThreadProcessId(handle, out _);
139
PInvokeCore
.PostMessage(handle,
PInvokeCore
.WM_CLOSE);
284
PInvokeCore
.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_ID, id);
303
_priorWindowProcHandle = (void*)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
311
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _windowProc);
312
_windowProcHandle = (void*)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
318
&& ((WINDOW_STYLE)(uint)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD)
319
&&
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_ID) == 0)
321
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_ID, hwnd);
369
if (msg ==
PInvokeCore
.WM_NCDESTROY)
507
m.ResultInternal =
PInvokeCore
.DefWindowProc(m.HWND, (uint)m.Msg, m.WParamInternal, m.LParamInternal);
511
m.ResultInternal =
PInvokeCore
.CallWindowProc(
538
PInvokeCore
.PostMessage(this,
PInvokeCore
.WM_CLOSE);
617
PInvokeCore
.SetWindowLong(handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc);
618
PInvokeCore
.SetClassLong(handle, GET_CLASS_LONG_INDEX.GCL_WNDPROC, DefaultWindowProc);
619
PInvokeCore
.PostMessage(handle,
PInvokeCore
.WM_CLOSE);
841
void* currentWindowProc = (void*)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
849
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, (nint)_priorWindowProcHandle);
860
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc);
867
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, PreviousWindow._windowProc!);
886
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, DefaultWindowProc);
898
case
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT:
903
case
PInvokeCore
.WM_DPICHANGED_AFTERPARENT:
System\Windows\Forms\NativeWindow.WindowClass.cs (2)
47
PInvokeCore
.SetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _defaultWindProc);
134
windowClass.hbrBackground = (HBRUSH)
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
System\Windows\Forms\NotifyIcon.cs (16)
31
private const int WM_TRAYMOUSEMESSAGE = (int)
PInvokeCore
.WM_USER + 1024;
406
PInvokeCore
.PostMessage(_window,
PInvokeCore
.WM_CLOSE);
734
case
PInvokeCore
.WM_LBUTTONDBLCLK:
737
case
PInvokeCore
.WM_LBUTTONDOWN:
740
case
PInvokeCore
.WM_LBUTTONUP:
743
case
PInvokeCore
.WM_MBUTTONDBLCLK:
746
case
PInvokeCore
.WM_MBUTTONDOWN:
749
case
PInvokeCore
.WM_MBUTTONUP:
752
case
PInvokeCore
.WM_MOUSEMOVE:
755
case
PInvokeCore
.WM_RBUTTONDBLCLK:
758
case
PInvokeCore
.WM_RBUTTONDOWN:
761
case
PInvokeCore
.WM_RBUTTONUP:
784
case
PInvokeCore
.WM_COMMAND:
799
case
PInvokeCore
.WM_DESTROY:
804
case
PInvokeCore
.WM_INITMENUPOPUP:
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (2)
31
PInvokeCore
.PostMessage(this,
PInvokeCore
.WM_CLOSE);
System\Windows\Forms\OLE\DropSource.cs (2)
103
_lastHwndTargetThreadId =
PInvokeCore
.GetWindowThreadProcessId(hwndTarget, lpdwProcessId: null);
119
private bool IsDropTargetWindowInCurrentThread() => _lastHwndTargetThreadId ==
PInvokeCore
.GetCurrentThreadId();
System\Windows\Forms\OLE\WinFormsOleServices.cs (4)
118
PInvokeCore
.ReleaseStgMedium(ref medium);
151
PInvokeCore
.OleGetClipboard(dataObject);
154
PInvokeCore
.OleSetClipboard(dataObject);
157
PInvokeCore
.OleFlushClipboard();
System\Windows\Forms\Panels\Panel.cs (1)
96
[DispId(
PInvokeCore
.DISPID_BORDERSTYLE)]
System\Windows\Forms\Printing\PageSetupDialog.cs (2)
345
PInvokeCore
.GlobalFree(dialogSettings.hDevMode);
346
PInvokeCore
.GlobalFree(dialogSettings.hDevNames);
System\Windows\Forms\Printing\PrintDialog.cs (5)
341
PInvokeCore
.GlobalFree(dialogSettings->hDevMode);
342
PInvokeCore
.GlobalFree(dialogSettings->hDevNames);
415
HRESULT hr =
PInvokeCore
.PrintDlgEx(&dialogSettings);
453
PInvokeCore
.GlobalFree(dialogSettings.hDevMode);
458
PInvokeCore
.GlobalFree(dialogSettings.hDevNames);
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
285
[DispId(
PInvokeCore
.DISPID_TABSTOP)]
478
PInvokeCore
.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX),
479
PInvokeCore
.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY));
1079
case
PInvokeCore
.WM_KEYDOWN:
System\Windows\Forms\Rendering\ControlPaint.cs (22)
157
PInvokeCore
.GetObject(palette, out uint entryCount);
177
PInvokeCore
.GetPaletteEntries(palette, entries);
191
PInvokeCore
.DeleteObject(palette);
194
hbitmap =
PInvokeCore
.CreateDIBSection(
213
HGDIOBJ previousBitmap =
PInvokeCore
.SelectObject(dc, hbitmap);
219
PInvokeCore
.DeleteObject(previousBitmap);
229
PInvokeCore
.DeleteObject(hbitmap);
292
return (IntPtr)
PInvokeCore
.CreateBitmap(size.Width, size.Height, nPlanes: 1, nBitCount: 1, pBits);
318
PInvokeCore
.SetBkColor(targetDC, (COLORREF)0x00ffffff); // white
319
PInvokeCore
.SetTextColor(targetDC, (COLORREF)0x00000000); // black
320
PInvokeCore
.BitBlt(targetDC, x: 0, y: 0, size.Width, size.Height, sourceDC, x1: 0, y1: 0, (ROP_CODE)0x220326);
1798
PInvokeCore
.GetDesktopWindow(),
1804
FrameStyle.Dashed => (HGDIOBJ)
PInvokeCore
.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1805
FrameStyle.Thick => (HGDIOBJ)
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1810
using SelectObjectScope brushSelection = new(desktopDC,
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
1813
PInvokeCore
.SetBkColor(desktopDC, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor));
1814
PInvokeCore
.Rectangle(desktopDC, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
1825
PInvokeCore
.GetDesktopWindow(),
1829
using ObjectScope pen = new(
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)));
1831
using SelectObjectScope brushSelection = new(desktopDC,
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
2040
PInvokeCore
.GetDesktopWindow(),
2044
using ObjectScope brush = new(
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(backColor)));
System\Windows\Forms\Rendering\DCMapping.cs (5)
37
_savedState =
PInvokeCore
.SaveDC(hdc);
41
bool success =
PInvokeCore
.GetViewportOrgEx(hdc, &viewportOrg);
79
GDI_REGION_TYPE combineResult =
PInvokeCore
.CombineRgn(
97
GDI_REGION_TYPE selectResult =
PInvokeCore
.SelectClipRgn(hdc, clippingRegion);
111
PInvokeCore
.RestoreDC(_hdc, _savedState);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (2)
54
OBJ_TYPE type = (OBJ_TYPE)
PInvokeCore
.GetObjectType(dc);
141
PInvokeCore
.SelectPalette(_hdc, _oldPalette, bForceBkgd: false);
System\Windows\Forms\Rendering\FontCache.Data.cs (3)
56
PInvokeCore
.DeleteObject(HFONT);
111
HFONT hfont =
PInvokeCore
.CreateFontIndirect(&logFont);
118
hfont =
PInvokeCore
.CreateFontIndirect(&logFont);
System\Windows\Forms\Rendering\GdiCache.cs (1)
63
OBJ_TYPE type = (OBJ_TYPE)
PInvokeCore
.GetObjectType(scope.HDC);
System\Windows\Forms\Rendering\ScreenDcCache.cs (5)
56
return new ScreenDcScope(this,
PInvokeCore
.CreateCompatibleDC(default));
80
PInvokeCore
.DeleteDC((HDC)temp);
92
PInvokeCore
.DeleteDC((HDC)hdc);
104
PInvokeCore
.DeleteObject(hrgn);
107
PInvokeCore
.GetViewportOrgEx(hdc, &point);
System\Windows\Forms\Screen.cs (11)
74
PInvokeCore
.GetMonitorInfo(monitor, (MONITORINFO*)&info);
76
_primary = ((info.monitorInfo.dwFlags &
PInvokeCore
.MONITORINFOF_PRIMARY) != 0);
82
screenDC =
PInvokeCore
.CreateDCW(_deviceName, pwszDevice: null, pszPort: null, pdm: null);
88
_bitDepth =
PInvokeCore
.GetDeviceCaps(screenDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
89
_bitDepth *=
PInvokeCore
.GetDeviceCaps(screenDC, GET_DEVICE_CAPS_INDEX.PLANES);
93
PInvokeCore
.DeleteDC(screenDC);
109
PInvokeCore
.EnumDisplayMonitors((HMONITOR hmonitor, HDC hdc) =>
205
PInvokeCore
.GetMonitorInfo(_hmonitor, (MONITORINFO*)&info);
251
? new Screen(
PInvokeCore
.MonitorFromPoint(point, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
259
? new Screen(
PInvokeCore
.MonitorFromRect(rect, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
277
? new Screen(
PInvokeCore
.MonitorFromWindow((HWND)hwnd, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
System\Windows\Forms\Scrolling\ScrollableControl.cs (5)
1229
PInvokeCore
.SendMessage(
1231
PInvokeCore
.WM_HSCROLL,
1463
case
PInvokeCore
.WM_VSCROLL:
1466
case
PInvokeCore
.WM_HSCROLL:
1469
case
PInvokeCore
.WM_SETTINGCHANGE:
System\Windows\Forms\Scrolling\ScrollBar.cs (6)
729
case
PInvokeCore
.WM_ERASEBKGND:
732
case
PInvokeCore
.WM_SIZE:
737
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_KILLFOCUS);
738
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_SETFOCUS);
System\Windows\Forms\SendKeys\SendKeys.cs (29)
140
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ShiftKey, startNewChar, hwnd));
147
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ControlKey, startNewChar, hwnd));
154
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.Menu, startNewChar, hwnd));
167
AddEvent(new SKEvent(
PInvokeCore
.WM_CHAR, character, (oemVal & 0xFFFF), hwnd));
186
AddEvent(new SKEvent(altnoctrldown ?
PInvokeCore
.WM_SYSKEYDOWN :
PInvokeCore
.WM_KEYDOWN, (uint)vk, s_startNewChar, hwnd));
187
AddEvent(new SKEvent(altnoctrldown ?
PInvokeCore
.WM_SYSKEYUP :
PInvokeCore
.WM_KEYUP, (uint)vk, s_startNewChar, hwnd));
199
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYUP, (int)Keys.ShiftKey, false, hwnd));
205
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYUP, (int)Keys.ControlKey, false, hwnd));
211
AddEvent(new SKEvent(
PInvokeCore
.WM_SYSKEYUP, (int)Keys.Menu, false, hwnd));
488
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ShiftKey, s_startNewChar, hwnd));
495
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd));
502
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.Menu, s_startNewChar, hwnd));
529
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ShiftKey, s_startNewChar, hwnd));
540
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYDOWN, (uint)Keys.ControlKey, s_startNewChar, hwnd));
552
haveKeys.HaveCtrl != 0 ?
PInvokeCore
.WM_KEYDOWN :
PInvokeCore
.WM_SYSKEYDOWN,
679
if (skEvent.WM ==
PInvokeCore
.WM_CHAR)
697
if (skEvent.WM ==
PInvokeCore
.WM_KEYUP || skEvent.WM ==
PInvokeCore
.WM_SYSKEYUP)
765
if ((skEvent.WM ==
PInvokeCore
.WM_KEYUP) || (skEvent.WM ==
PInvokeCore
.WM_SYSKEYUP))
769
else if ((skEvent.WM ==
PInvokeCore
.WM_KEYDOWN) || (skEvent.WM ==
PInvokeCore
.WM_SYSKEYDOWN))
794
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYUP, (int)Keys.ShiftKey, false, default));
798
AddEvent(new SKEvent(
PInvokeCore
.WM_KEYUP, (int)Keys.ControlKey, false, default));
802
AddEvent(new SKEvent(
PInvokeCore
.WM_SYSKEYUP, (int)Keys.Menu, false, default));
830
if (skEvent.WM ==
PInvokeCore
.WM_KEYDOWN)
System\Windows\Forms\SendKeys\SendKeys.SKWindow.cs (1)
23
if (m.Msg == (int)
PInvokeCore
.WM_CANCELJOURNAL)
System\Windows\Forms\StringSource.cs (1)
29
PInvokeCore
.CoCreateInstance(
System\Windows\Forms\SystemInformation.cs (84)
33
=>
PInvokeCore
.SystemParametersInfoBool(SPI_GETDRAGFULLWINDOWS);
43
return
PInvokeCore
.SystemParametersInfo(ref data)
52
=>
PInvokeCore
.SystemParametersInfoInt(SPI_GETWHEELSCROLLLINES);
62
public static int VerticalScrollBarWidth =>
PInvokeCore
.GetSystemMetrics(SM_CXVSCROLL);
70
:
PInvokeCore
.GetSystemMetrics(SM_CXVSCROLL);
75
public static int HorizontalScrollBarHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYHSCROLL);
83
:
PInvokeCore
.GetSystemMetrics(SM_CYHSCROLL);
88
public static int CaptionHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYCAPTION);
114
public static int VerticalScrollBarThumbHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYVTHUMB);
119
public static int HorizontalScrollBarThumbWidth =>
PInvokeCore
.GetSystemMetrics(SM_CXHTHUMB);
149
?
PInvokeCore
.TrySystemParametersInfoForDpi(ref data, dpi)
150
:
PInvokeCore
.SystemParametersInfo(ref data);
171
public static int MenuHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYMENU);
186
PInvokeCore
.SystemParametersInfo(SPI_GETWORKAREA, ref workingArea);
195
public static int KanjiWindowHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYKANJIWINDOW);
201
public static bool MousePresent =>
PInvokeCore
.GetSystemMetrics(SM_MOUSEPRESENT) != 0;
206
public static int VerticalScrollBarArrowHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYVSCROLL);
217
public static int HorizontalScrollBarArrowWidth =>
PInvokeCore
.GetSystemMetrics(SM_CXHSCROLL);
225
:
PInvokeCore
.GetSystemMetrics(SM_CXHSCROLL);
230
public static bool DebugOS =>
PInvokeCore
.GetSystemMetrics(SM_DEBUG) != 0;
236
public static bool MouseButtonsSwapped =>
PInvokeCore
.GetSystemMetrics(SM_SWAPBUTTON) != 0;
279
public static bool RightAlignedMenus =>
PInvokeCore
.GetSystemMetrics(SM_MENUDROPALIGNMENT) != 0;
284
public static bool PenWindows =>
PInvokeCore
.GetSystemMetrics(SM_PENWINDOWS) != 0;
290
public static bool DbcsEnabled =>
PInvokeCore
.GetSystemMetrics(SM_DBCSENABLED) != 0;
295
public static int MouseButtons =>
PInvokeCore
.GetSystemMetrics(SM_CMOUSEBUTTONS);
300
public static bool Secure =>
PInvokeCore
.GetSystemMetrics(SM_SECURE) != 0;
320
public static int ToolWindowCaptionHeight =>
PInvokeCore
.GetSystemMetrics(SM_CYSMCAPTION);
344
int compoundValue =
PInvokeCore
.GetSystemMetrics(SM_ARRANGE);
358
int compoundValue =
PInvokeCore
.GetSystemMetrics(SM_ARRANGE);
383
public static bool Network => (
PInvokeCore
.GetSystemMetrics(SM_NETWORK) & 0x00000001) != 0;
385
public static bool TerminalServerSession => (
PInvokeCore
.GetSystemMetrics(SM_REMOTESESSION) & 0x00000001) != 0;
390
public static BootMode BootMode => (BootMode)
PInvokeCore
.GetSystemMetrics(SM_CLEANBOOT);
403
public static bool ShowSounds =>
PInvokeCore
.GetSystemMetrics(SM_SHOWSOUNDS) != 0;
413
public static bool MidEastEnabled =>
PInvokeCore
.GetSystemMetrics(SM_MIDEASTENABLED) != 0;
421
s_multiMonitorSupport =
PInvokeCore
.GetSystemMetrics(SM_CMONITORS) != 0;
439
public static bool NativeMouseWheelSupport =>
PInvokeCore
.GetSystemMetrics(SM_MOUSEWHEELPRESENT) != 0;
455
return new(
PInvokeCore
.GetSystemMetrics(SM_XVIRTUALSCREEN),
456
PInvokeCore
.GetSystemMetrics(SM_YVIRTUALSCREEN),
457
PInvokeCore
.GetSystemMetrics(SM_CXVIRTUALSCREEN),
458
PInvokeCore
.GetSystemMetrics(SM_CYVIRTUALSCREEN));
469
public static int MonitorCount => MultiMonitorSupport ?
PInvokeCore
.GetSystemMetrics(SM_CMONITORS) : 1;
475
=> !MultiMonitorSupport ||
PInvokeCore
.GetSystemMetrics(SM_SAMEDISPLAYFORMAT) != 0;
529
public static bool IsDropShadowEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETDROPSHADOW);
534
public static bool IsFlatMenuEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETFLATMENU);
539
public static bool IsFontSmoothingEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETFONTSMOOTHING);
544
public static int FontSmoothingContrast =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETFONTSMOOTHINGCONTRAST);
549
public static int FontSmoothingType =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETFONTSMOOTHINGTYPE);
554
public static int IconHorizontalSpacing =>
PInvokeCore
.SystemParametersInfoInt(SPI_ICONHORIZONTALSPACING);
559
public static int IconVerticalSpacing =>
PInvokeCore
.SystemParametersInfoInt(SPI_ICONVERTICALSPACING);
564
public static bool IsIconTitleWrappingEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETICONTITLEWRAP);
569
public static bool MenuAccessKeysUnderlined =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETKEYBOARDCUES);
576
public static int KeyboardDelay =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETKEYBOARDDELAY);
582
public static bool IsKeyboardPreferred =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETKEYBOARDPREF);
588
public static int KeyboardSpeed =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETKEYBOARDSPEED);
595
=> new(
PInvokeCore
.SystemParametersInfoInt(SPI_GETMOUSEHOVERWIDTH),
596
PInvokeCore
.SystemParametersInfoInt(SPI_GETMOUSEHOVERHEIGHT));
602
public static int MouseHoverTime =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETMOUSEHOVERTIME);
607
public static int MouseSpeed =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETMOUSESPEED);
612
public static bool IsSnapToDefaultEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETSNAPTODEFBUTTON);
618
=>
PInvokeCore
.SystemParametersInfoBool(SPI_GETMENUDROPALIGNMENT)
624
public static bool IsMenuFadeEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETMENUFADE);
630
public static int MenuShowDelay =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETMENUSHOWDELAY);
635
public static bool IsComboBoxAnimationEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETCOMBOBOXANIMATION);
640
public static bool IsTitleBarGradientEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETGRADIENTCAPTIONS);
645
public static bool IsHotTrackingEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETHOTTRACKING);
650
public static bool IsListBoxSmoothScrollingEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETLISTBOXSMOOTHSCROLLING);
655
public static bool IsMenuAnimationEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETMENUANIMATION);
660
public static bool IsSelectionFadeEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETSELECTIONFADE);
665
public static bool IsToolTipAnimationEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETTOOLTIPANIMATION);
670
public static bool UIEffectsEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETUIEFFECTS);
675
public static bool IsActiveWindowTrackingEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETACTIVEWINDOWTRACKING);
680
public static int ActiveWindowTrackingDelay =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETACTIVEWNDTRKTIMEOUT);
685
public static bool IsMinimizeRestoreAnimationEnabled =>
PInvokeCore
.SystemParametersInfoBool(SPI_GETANIMATION);
690
public static int BorderMultiplierFactor =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETBORDER);
700
public static int CaretWidth =>
PInvokeCore
.SystemParametersInfoInt(SPI_GETCARETWIDTH);
707
public static int VerticalFocusThickness =>
PInvokeCore
.GetSystemMetrics(SM_CYFOCUSBORDER);
712
public static int HorizontalFocusThickness =>
PInvokeCore
.GetSystemMetrics(SM_CXFOCUSBORDER);
717
public static int VerticalResizeBorderThickness =>
PInvokeCore
.GetSystemMetrics(SM_CYSIZEFRAME);
722
public static int HorizontalResizeBorderThickness =>
PInvokeCore
.GetSystemMetrics(SM_CXSIZEFRAME);
755
return
PInvokeCore
.SystemParametersInfo(ref data)
768
return
PInvokeCore
.SystemParametersInfo(ref data)
783
return
PInvokeCore
.SystemParametersInfo(ref data)
815
=> new(
PInvokeCore
.GetSystemMetrics(x),
PInvokeCore
.GetSystemMetrics(y));
System\Windows\Forms\Timer.cs (6)
241
return
PInvokeCore
.GetWindowThreadProcessId(hwnd, out _) !=
PInvokeCore
.GetCurrentThreadId();
284
PInvokeCore
.PostMessage(hwnd,
PInvokeCore
.WM_CLOSE);
347
if (m.MsgInternal ==
PInvokeCore
.WM_TIMER)
355
else if (m.MsgInternal ==
PInvokeCore
.WM_CLOSE)
System\Windows\Forms\ToolTip\ToolTip.cs (39)
117
PInvokeCore
.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)value);
183
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)_backColor);
252
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)_foreColor);
437
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTITLEW, (uint)_toolTipIcon, title);
441
PInvokeCore
.SendMessage(this, PInvoke.TTM_UPDATE);
465
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTITLEW, (uint)_toolTipIcon, _toolTipTitle);
469
PInvokeCore
.SendMessage(this, PInvoke.TTM_UPDATE);
726
int style = unchecked((int)((long)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE)));
728
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE, style);
732
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
771
PInvokeCore
.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)_active);
775
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)BackColor);
780
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)ForeColor);
787
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETTITLEW, (WPARAM)(int)_toolTipIcon, title);
964
return (int)
PInvokeCore
.SendMessage(this, PInvoke.TTM_GETDELAYTIME, (WPARAM)type);
1181
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETDELAYTIME, (WPARAM)type, (LPARAM)time);
1311
PInvokeCore
.GetWindowRect(associatedControl, out var rect);
1409
PInvokeCore
.GetWindowRect(Control.GetSafeHandle(window), out var r);
1429
PInvokeCore
.GetWindowRect(Control.GetSafeHandle(window), out var r);
1447
PInvokeCore
.GetWindowRect(Control.GetSafeHandle(window), out var r);
1465
PInvokeCore
.GetWindowRect(Control.GetSafeHandle(window), out var r);
1709
PInvokeCore
.SendMessage(this, PInvoke.TTM_TRACKPOSITION, 0, PARAM.FromLowHigh(pointX, pointY));
1989
PInvokeCore
.GetWindowRect(this, out var rectangle);
2007
PInvokeCore
.GetWindowRect(Control.GetSafeHandle(window), out var r);
2041
PInvokeCore
.GetWindowRect(this, out var rect);
2060
AnnounceText(toolControl,
PInvokeCore
.GetWindowText(this));
2067
PInvokeCore
.GetWindowRect(this, out rect);
2073
PInvokeCore
.SendMessage(this, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref rect);
2090
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, maxwidth);
2240
PInvokeCore
.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width);
2287
case (int)
PInvokeCore
.WM_WINDOWPOSCHANGING:
2291
case (int)
PInvokeCore
.WM_WINDOWPOSCHANGED:
2299
case (int)
PInvokeCore
.WM_MOUSEACTIVATE:
2303
case (int)
PInvokeCore
.WM_MOVE:
2311
case (int)
PInvokeCore
.WM_PRINTCLIENT:
2312
goto case (int)
PInvokeCore
.WM_PAINT;
2314
case (int)
PInvokeCore
.WM_PAINT:
2331
font = Font.FromHfont(
PInvokeCore
.SendMessage(this,
PInvokeCore
.WM_GETFONT));
System\Windows\Forms\UserControl.cs (1)
323
case
PInvokeCore
.WM_SETFOCUS:
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
470
PInvokeCore
.DeleteObject(hrgn);
System\Windows\Forms\WindowSubclassHandler.cs (4)
97
_originalWindowProc = (void*)
PInvokeCore
.SetWindowLong(
183
void* currentWindowProcedure = (void*)
PInvokeCore
.GetWindowLong(
203
if (
PInvokeCore
.SetWindowLong(
228
m.ResultInternal =
PInvokeCore
.CallWindowProc(
System.Windows.Forms.Design (300)
System\ComponentModel\Design\ByteViewer.cs (4)
402
bufferSize =
PInvokeCore
.MultiByteToWideChar(
PInvokeCore
.CP_ACP, 0, (PCSTR)pDataBuff, _dataBuf.Length, null, 0);
406
size =
PInvokeCore
.MultiByteToWideChar(
PInvokeCore
.CP_ACP, 0, (PCSTR)pDataBuff, bufferSize, pText, bufferSize);
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (8)
48
case
PInvokeCore
.WM_KEYDOWN:
69
PInvokeCore
.SendMessage(PInvoke.GetFocus(),
PInvokeCore
.WM_KEYDOWN, _lastKeyDown.WParamInternal, _lastKeyDown.LParamInternal);
75
case
PInvokeCore
.WM_CHAR:
97
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_KEYDOWN, _lastKeyDown.WParamInternal, _lastKeyDown.LParamInternal);
98
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_CHAR, m.WParamInternal, m.LParamInternal);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (6)
110
hWnd = (HWND)
PInvokeCore
.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
141
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, parent.Handle);
147
PInvokeCore
.SendMessage(hWndCapture,
PInvokeCore
.WM_CANCELMODE);
157
PInvokeCore
.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, IntPtr.Zero);
170
if (m.MsgInternal ==
PInvokeCore
.WM_ACTIVATE
System\ComponentModel\Design\DesignerActionUI.cs (1)
720
PInvokeCore
.SetWindowLong(
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (4)
116
HWND parent = (HWND)
PInvokeCore
.GetWindowLong(
203
hWndDescendant = (HWND)
PInvokeCore
.GetWindowLong(hWndDescendant, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
220
int style = (int)
PInvokeCore
.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
243
case
PInvokeCore
.WM_ACTIVATE:
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
337
string windowText =
PInvokeCore
.GetWindowText(this);
408
case
PInvokeCore
.WM_PAINT:
System\ComponentModel\Design\ObjectSelectorEditor.cs (2)
68
uint exstyle = (uint)
PInvokeCore
.SendMessage(hwnd, PInvoke.TVM_GETEXTENDEDSTYLE);
70
PInvokeCore
.SendMessage(hwnd, PInvoke.TVM_SETEXTENDEDSTYLE, (WPARAM)0, (LPARAM)exstyle);
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (2)
193
case
PInvokeCore
.WM_GETDLGCODE:
196
case
PInvokeCore
.WM_MOUSEMOVE:
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (10)
63
case
PInvokeCore
.WM_INITDIALOG:
67
PInvokeCore
.EM_SETMARGINS,
73
PInvokeCore
.EM_SETMARGINS,
79
PInvokeCore
.EM_SETMARGINS,
85
PInvokeCore
.EM_SETMARGINS,
91
PInvokeCore
.EM_SETMARGINS,
97
PInvokeCore
.EM_SETMARGINS,
117
case
PInvokeCore
.WM_COMMAND:
131
PInvokeCore
.PostMessage(
133
PInvokeCore
.WM_COMMAND,
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (11)
291
case
PInvokeCore
.WM_PAINT:
317
case
PInvokeCore
.WM_NCHITTEST:
328
case
PInvokeCore
.WM_CAPTURECHANGED:
349
case
PInvokeCore
.WM_LBUTTONDOWN:
357
case
PInvokeCore
.WM_RBUTTONDOWN:
365
case
PInvokeCore
.WM_MOUSEMOVE:
373
case
PInvokeCore
.WM_LBUTTONUP:
381
case
PInvokeCore
.WM_RBUTTONUP:
389
case
PInvokeCore
.WM_MOUSEHOVER:
397
case
PInvokeCore
.WM_LBUTTONDBLCLK:
405
case
PInvokeCore
.WM_RBUTTONDBLCLK:
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (5)
74
PInvokeCore
.GetWindowThreadProcessId(adornerWindow, out _thisProcessID);
83
PInvokeCore
.GetCurrentThreadId());
168
PInvokeCore
.GetWindowThreadProcessId(hwnd, out uint pid);
183
if (m.Msg == (int)
PInvokeCore
.WM_LBUTTONDOWN)
187
else if (m.Msg == (int)
PInvokeCore
.WM_LBUTTONDBLCLK)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
273
PInvokeCore
.MapWindowPoints(c.Parent, _adornerWindow, ref pt);
287
PInvokeCore
.MapWindowPoints((HWND)handle, _adornerWindow, ref pt);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
647
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
833
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\CommandSet.cs (2)
693
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_SETCURSOR, hwnd, (nint)PInvoke.HTCLIENT);
System\Windows\Forms\Design\ComponentTray.cs (10)
1595
case
PInvokeCore
.WM_CANCELMODE:
1600
case
PInvokeCore
.WM_SETCURSOR:
1603
case
PInvokeCore
.WM_HSCROLL:
1604
case
PInvokeCore
.WM_VSCROLL:
1611
case
PInvokeCore
.WM_STYLECHANGED:
1615
case
PInvokeCore
.WM_CONTEXTMENU:
1629
case
PInvokeCore
.WM_NCHITTEST:
2527
case
PInvokeCore
.WM_SETCURSOR:
2531
case
PInvokeCore
.WM_CONTEXTMENU:
2547
case
PInvokeCore
.WM_NCHITTEST:
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (3)
38
if (m.MsgInternal ==
PInvokeCore
.WM_DESTROY)
43
if (m.MsgInternal ==
PInvokeCore
.WM_PARENTNOTIFY && m.WParamInternal.LOWORD ==
PInvokeCore
.WM_CREATE)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (2)
77
if (m.Msg == (int)
PInvokeCore
.WM_CREATE)
80
PInvokeCore
.RevokeDragDrop(_handle);
System\Windows\Forms\Design\ControlDesigner.cs (94)
290
PInvokeCore
.MapWindowPoints(Control, parent, ref nativeOffset);
399
=> m.ResultInternal =
PInvokeCore
.DefWindowProc(m.HWND, (uint)m.MsgInternal, m.WParamInternal, m.LParamInternal);
519
PInvokeCore
.RevokeDragDrop(e.Control);
895
PInvokeCore
.RevokeDragDrop(child);
1237
PInvokeCore
.RevokeDragDrop(Control);
1717
if (m.MsgInternal ==
PInvokeCore
.WM_NCHITTEST && !_inHitTest)
1738
bool isContextKey = m.MsgInternal ==
PInvokeCore
.WM_CONTEXTMENU;
1745
if (m.MsgInternal ==
PInvokeCore
.WM_CONTEXTMENU)
1757
if (m.MsgInternal ==
PInvokeCore
.WM_CONTEXTMENU)
1762
if (m.MsgInternal ==
PInvokeCore
.WM_LBUTTONUP)
1779
if ((m.MsgInternal >=
PInvokeCore
.WM_MOUSEFIRST && m.MsgInternal <=
PInvokeCore
.WM_MOUSELAST)
1780
|| (m.MsgInternal >=
PInvokeCore
.WM_NCMOUSEMOVE && m.MsgInternal <=
PInvokeCore
.WM_NCMBUTTONDBLCLK)
1781
|| m.MsgInternal ==
PInvokeCore
.WM_SETCURSOR)
1791
if (m.MsgInternal >=
PInvokeCore
.WM_MOUSEFIRST && m.MsgInternal <=
PInvokeCore
.WM_MOUSELAST)
1794
PInvokeCore
.MapWindowPoints(m, (HWND)default, ref location);
1796
else if (m.MsgInternal >=
PInvokeCore
.WM_NCMOUSEMOVE && m.MsgInternal <=
PInvokeCore
.WM_NCMBUTTONDBLCLK)
1806
case
PInvokeCore
.WM_CREATE:
1818
case
PInvokeCore
.WM_GETOBJECT:
1831
case
PInvokeCore
.WM_MBUTTONDOWN:
1832
case
PInvokeCore
.WM_MBUTTONUP:
1833
case
PInvokeCore
.WM_MBUTTONDBLCLK:
1834
case
PInvokeCore
.WM_NCMOUSEHOVER:
1835
case
PInvokeCore
.WM_NCMOUSELEAVE:
1836
case
PInvokeCore
.WM_MOUSEWHEEL:
1837
case
PInvokeCore
.WM_NCMBUTTONDOWN:
1838
case
PInvokeCore
.WM_NCMBUTTONUP:
1839
case
PInvokeCore
.WM_NCMBUTTONDBLCLK:
1842
case
PInvokeCore
.WM_MOUSEHOVER:
1853
case
PInvokeCore
.WM_MOUSELEAVE:
1857
case
PInvokeCore
.WM_NCLBUTTONDBLCLK:
1858
case
PInvokeCore
.WM_LBUTTONDBLCLK:
1859
case
PInvokeCore
.WM_NCRBUTTONDBLCLK:
1860
case
PInvokeCore
.WM_RBUTTONDBLCLK:
1861
button = m.MsgInternal ==
PInvokeCore
.WM_NCRBUTTONDBLCLK || m.MsgInternal ==
PInvokeCore
.WM_RBUTTONDBLCLK
1880
case
PInvokeCore
.WM_NCLBUTTONDOWN:
1881
case
PInvokeCore
.WM_LBUTTONDOWN:
1882
case
PInvokeCore
.WM_NCRBUTTONDOWN:
1883
case
PInvokeCore
.WM_RBUTTONDOWN:
1884
button = m.MsgInternal ==
PInvokeCore
.WM_NCRBUTTONDOWN || m.MsgInternal ==
PInvokeCore
.WM_RBUTTONDOWN
1890
PInvokeCore
.SendMessage(Control,
PInvokeCore
.WM_SETFOCUS);
1924
PInvokeCore
.SendMessage(
1953
case
PInvokeCore
.WM_NCMOUSEMOVE:
1954
case
PInvokeCore
.WM_MOUSEMOVE:
1973
PInvokeCore
.SendMessage(
1996
if (m.MsgInternal ==
PInvokeCore
.WM_MOUSEMOVE)
2002
case
PInvokeCore
.WM_NCLBUTTONUP:
2003
case
PInvokeCore
.WM_LBUTTONUP:
2004
case
PInvokeCore
.WM_NCRBUTTONUP:
2005
case
PInvokeCore
.WM_RBUTTONUP:
2007
button = m.MsgInternal ==
PInvokeCore
.WM_NCRBUTTONUP || m.MsgInternal ==
PInvokeCore
.WM_RBUTTONUP
2020
PInvokeCore
.SendMessage(
2039
case
PInvokeCore
.WM_PRINTCLIENT:
2048
case
PInvokeCore
.WM_PAINT:
2084
PInvokeCore
.MapWindowPoints(m.HWND, Control, ref point);
2086
PInvokeCore
.MapWindowPoints(m.HWND, Control, ref clip);
2113
case
PInvokeCore
.WM_NCPAINT:
2114
case
PInvokeCore
.WM_NCACTIVATE:
2115
if (m.Msg == (int)
PInvokeCore
.WM_NCACTIVATE)
2144
case
PInvokeCore
.WM_SETCURSOR:
2163
case
PInvokeCore
.WM_SIZE:
2171
case
PInvokeCore
.WM_CANCELMODE:
2177
case
PInvokeCore
.WM_SETFOCUS:
2200
case
PInvokeCore
.WM_CONTEXTMENU:
2231
else if (m.MsgInternal <
PInvokeCore
.WM_KEYFIRST || m.MsgInternal >
PInvokeCore
.WM_KEYLAST)
2321
(msg >=
PInvokeCore
.WM_MOUSEFIRST && msg <=
PInvokeCore
.WM_MOUSELAST)
2325
PInvokeCore
.WM_MOUSEHOVER
2326
or
PInvokeCore
.WM_MOUSELEAVE
2327
or
PInvokeCore
.WM_NCMOUSEMOVE
2328
or
PInvokeCore
.WM_NCLBUTTONDOWN
2329
or
PInvokeCore
.WM_NCLBUTTONUP
2330
or
PInvokeCore
.WM_NCLBUTTONDBLCLK
2331
or
PInvokeCore
.WM_NCRBUTTONDOWN
2332
or
PInvokeCore
.WM_NCRBUTTONUP
2333
or
PInvokeCore
.WM_NCRBUTTONDBLCLK
2334
or
PInvokeCore
.WM_NCMBUTTONDOWN
2335
or
PInvokeCore
.WM_NCMBUTTONUP
2336
or
PInvokeCore
.WM_NCMBUTTONDBLCLK
2337
or
PInvokeCore
.WM_NCMOUSEHOVER
2338
or
PInvokeCore
.WM_NCMOUSELEAVE
2339
or
PInvokeCore
.WM_NCXBUTTONDOWN
2340
or
PInvokeCore
.WM_NCXBUTTONUP
2341
or
PInvokeCore
.WM_NCXBUTTONDBLCLK => true,
2425
PInvokeCore
.RevokeDragDrop(hwndChild);
2446
PInvokeCore
.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Design\DesignerFrame.cs (25)
90
PInvokeCore
.SendMessage(_designer,
PInvokeCore
.WM_NCACTIVATE, (WPARAM)(BOOL)focus);
179
case
PInvokeCore
.WM_MOUSEWHEEL:
184
PInvokeCore
.SendMessage(_designerRegion,
PInvokeCore
.WM_MOUSEWHEEL, m.WParamInternal, m.LParamInternal);
190
case
PInvokeCore
.WM_KEYDOWN:
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)
205
if (msg ==
PInvokeCore
.WM_VSCROLL || msg ==
PInvokeCore
.WM_HSCROLL)
208
PInvokeCore
.SendMessage(_designerRegion, msg, (WPARAM)(int)wScrollNotify);
213
case
PInvokeCore
.WM_CONTEXTMENU:
214
PInvokeCore
.SendMessage(_designer!, m.MsgInternal, m.WParamInternal, m.LParamInternal);
500
if (m.MsgInternal ==
PInvokeCore
.WM_PARENTNOTIFY && m.WParamInternal.LOWORD ==
PInvokeCore
.WM_CREATE)
524
else if (m.Msg is (int)
PInvokeCore
.WM_VSCROLL or (int)
PInvokeCore
.WM_HSCROLL && BehaviorService is not null)
528
else if ((m.Msg == (int)
PInvokeCore
.WM_MOUSEWHEEL))
System\Windows\Forms\Design\DesignerUtils.cs (21)
28
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
30
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
32
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
34
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
172
PInvokeCore
.DeleteObject(s_grabHandleFillBrushPrimary);
173
s_grabHandleFillBrushPrimary =
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
175
PInvokeCore
.DeleteObject(s_grabHandleFillBrush);
176
s_grabHandleFillBrush =
PInvokeCore
.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
178
PInvokeCore
.DeleteObject(s_grabHandlePenPrimary);
179
s_grabHandlePenPrimary =
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
181
PInvokeCore
.DeleteObject(s_grabHandlePen);
182
s_grabHandlePen =
PInvokeCore
.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
270
PInvokeCore
.Rectangle(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
293
PInvokeCore
.SelectObject(hDC, isPrimary ? s_grabHandleFillBrushPrimary : s_grabHandleFillBrush);
294
PInvokeCore
.Rectangle(hDC, bounds.Left, bounds.Top + s_lockedHandleLowerOffset, bounds.Right, bounds.Bottom);
404
PInvokeCore
.BitBlt(
443
PInvokeCore
.SendMessage(
445
PInvokeCore
.WM_PRINT,
822
=> (uint)
PInvokeCore
.SendMessage(handle, PInvoke.TVM_GETEXTENDEDSTYLE);
838
PInvokeCore
.SendMessage(treeView, PInvoke.TVM_SETEXTENDEDSTYLE, 0, (nint)exstyle);
851
PInvokeCore
.SendMessage(
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
290
HRESULT hr =
PInvokeCore
.LoadRegTypeLib(
System\Windows\Forms\Design\DocumentDesigner.cs (2)
1081
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\FormDocumentDesigner.cs (4)
400
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_NCACTIVATE, (WPARAM)(BOOL)true);
412
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
108
case (int)
PInvokeCore
.WM_NCHITTEST:
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
186
PInvokeCore
.SendMessage(listBox, PInvoke.LB_RESETCONTENT);
187
PInvokeCore
.SendMessage(listBox, PInvoke.LB_ADDSTRING, 0, name);
System\Windows\Forms\Design\ListViewDesigner.cs (4)
81
HWND headerHwnd = (HWND)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETHEADER);
84
PInvokeCore
.MapWindowPoints(HWND.Null, headerHwnd, ref point);
86
PInvokeCore
.SendMessage(headerHwnd, PInvoke.HDM_HITTEST, 0, ref _hdrhit);
135
case (int)
PInvokeCore
.WM_NOTIFY:
System\Windows\Forms\Design\MaskDesignerDialog.cs (4)
501
PInvokeCore
.SendMessage(_listViewCannedMasks,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
535
PInvokeCore
.SendMessage(_listViewCannedMasks,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\OleDragDropHandler.cs (10)
441
using SelectObjectScope brushSelection = new(dc,
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
444
PInvokeCore
.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor));
445
PInvokeCore
.Rectangle(dc, rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
491
while (
PInvokeCore
.PeekMessage(&msg, HWND.Null,
PInvokeCore
.WM_PAINT,
PInvokeCore
.WM_PAINT, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE))
755
PInvokeCore
.SendMessage(oldDesignerControl,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
803
PInvokeCore
.SendMessage(oldDesignerControl,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\PbrsForward.cs (22)
18
private const int WM_PRIVATE_POSTCHAR = (int)
PInvokeCore
.WM_USER + 0x1598;
72
if (m.Msg is >= ((int)
PInvokeCore
.WM_KEYFIRST)
73
and <= ((int)
PInvokeCore
.WM_KEYLAST) or >= ((int)
PInvokeCore
.WM_IME_STARTCOMPOSITION)
74
and <= ((int)
PInvokeCore
.WM_IME_COMPOSITION))
101
if (bk.KeyChar.MsgInternal ==
PInvokeCore
.WM_CHAR)
105
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_KEYDOWN, bk.KeyDown.WParamInternal, bk.KeyDown.LParamInternal);
108
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_CHAR, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal);
111
PInvokeCore
.SendMessage(hwnd,
PInvokeCore
.WM_KEYUP, bk.KeyUp.WParamInternal, bk.KeyUp.LParamInternal);
116
PInvokeCore
.SendMessage(hwnd, bk.KeyChar.MsgInternal, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal);
124
case (int)
PInvokeCore
.WM_KEYDOWN:
128
case (int)
PInvokeCore
.WM_IME_ENDCOMPOSITION:
129
case (int)
PInvokeCore
.WM_KEYUP:
133
case (int)
PInvokeCore
.WM_CHAR:
134
case (int)
PInvokeCore
.WM_IME_STARTCOMPOSITION:
135
case (int)
PInvokeCore
.WM_IME_COMPOSITION:
151
else if (_ignoreMessages && m.Msg != (int)
PInvokeCore
.WM_IME_COMPOSITION)
168
case (int)
PInvokeCore
.WM_KILLFOCUS:
179
PInvokeCore
.PostMessage(_target, (MessageId)WM_PRIVATE_POSTCHAR);
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
33
PInvokeCore
.RevokeDragDrop((HWND)control.Handle);
System\Windows\Forms\Design\ScrollableControlDesigner.cs (4)
33
int hitTest = (int)
PInvokeCore
.SendMessage(f,
PInvokeCore
.WM_NCHITTEST, 0, PARAM.FromLowHigh(pt.X, pt.Y));
52
case (int)
PInvokeCore
.WM_HSCROLL:
53
case (int)
PInvokeCore
.WM_VSCROLL:
System\Windows\Forms\Design\SelectionUIService.cs (3)
846
case
PInvokeCore
.WM_LBUTTONUP:
847
case
PInvokeCore
.WM_RBUTTONUP:
854
case
PInvokeCore
.WM_CAPTURECHANGED:
System\Windows\Forms\Design\SplitterDesigner.cs (1)
56
case
PInvokeCore
.WM_WINDOWPOSCHANGED:
System\Windows\Forms\Design\TabControlDesigner.cs (4)
601
case
PInvokeCore
.WM_NCHITTEST:
611
case
PInvokeCore
.WM_CONTEXTMENU:
628
case
PInvokeCore
.WM_HSCROLL:
629
case
PInvokeCore
.WM_VSCROLL:
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
111
PInvokeCore
.MapWindowPoints(c.Parent, _toolStripAdornerWindow, ref pt);
287
case
PInvokeCore
.WM_NCHITTEST:
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
1005
case
PInvokeCore
.WM_SETFOCUS:
1006
case
PInvokeCore
.WM_KILLFOCUS:
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
2539
case
PInvokeCore
.WM_CONTEXTMENU:
2547
case
PInvokeCore
.WM_LBUTTONDOWN:
2548
case
PInvokeCore
.WM_RBUTTONDOWN:
System\Windows\Forms\Design\ToolStripTemplateNode.cs (11)
883
PInvokeCore
.SendMessage(baseComponent,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
885
PInvokeCore
.SendMessage(baseComponent,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
963
PInvokeCore
.SendMessage(baseComponent,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)false);
965
PInvokeCore
.SendMessage(baseComponent,
PInvokeCore
.WM_SETREDRAW, (WPARAM)(BOOL)true);
1558
case
PInvokeCore
.WM_KILLFOCUS:
1573
case
PInvokeCore
.WM_CONTEXTMENU:
1722
case
PInvokeCore
.WM_GETOBJECT:
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
54
PInvokeCore
.SendMessage(Control, PInvoke.TVM_HITTEST, 0, ref _tvhit);
System.Windows.Forms.Design.Tests (1)
ControlDesignerTests.cs (1)
189
Message m = new Message { Msg = (int)
PInvokeCore
.WM_PAINT };
System.Windows.Forms.IntegrationTests.Common (4)
TestHelpers.cs (4)
416
/// <seealso cref="
PInvokeCore
.GetForegroundWindow()"/>
443
HWND foregroundWindow =
PInvokeCore
.GetForegroundWindow();
445
string windowTitle =
PInvokeCore
.GetWindowText(foregroundWindow);
447
if (
PInvokeCore
.GetWindowThreadProcessId(foregroundWindow, out uint processId) == 0 ||
System.Windows.Forms.Interop.Tests (3)
AccessibleObjectTests.cs (1)
749
dispatch.Value->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo).ThrowOnFailure();
PropertyGridTests.cs (2)
127
PInvokeCore
.CoCreateInstance(
138
PInvokeCore
.CoCreateInstance(
System.Windows.Forms.Primitives (39)
Interop\Richedit\Interop.CHARFORMAT2W.cs (2)
23
public fixed char _szFaceName[(int)
PInvokeCore
.LF_FACESIZE];
41
get { fixed (char* c = _szFaceName) { return new Span<char>(c, (int)
PInvokeCore
.LF_FACESIZE); } }
Interop\User32\WMExtensions.cs (8)
9
=> message.IsBetween(
PInvokeCore
.WM_MOUSEFIRST,
PInvokeCore
.WM_MOUSELAST);
12
=> message.IsBetween(
PInvokeCore
.WM_MOUSEFIRST,
PInvokeCore
.WM_MOUSELAST);
15
=> message.IsBetween(
PInvokeCore
.WM_KEYFIRST,
PInvokeCore
.WM_KEYLAST);
18
=> message.IsBetween(
PInvokeCore
.WM_KEYFIRST,
PInvokeCore
.WM_KEYLAST);
System\Drawing\ImageExtensions.cs (5)
65
dispatch->TryGetProperty((int)
PInvokeCore
.DISPID_PICT_TYPE, &variant).ThrowOnFailure();
69
dispatch->TryGetProperty((int)
PInvokeCore
.DISPID_PICT_HPAL, &variant).ThrowOnFailure();
73
dispatch->TryGetProperty((int)
PInvokeCore
.DISPID_PICT_HANDLE, &variant).ThrowOnFailure();
76
dispatch->TryGetProperty((int)
PInvokeCore
.DISPID_PICT_WIDTH, &variant).ThrowOnFailure();
79
dispatch->TryGetProperty((int)
PInvokeCore
.DISPID_PICT_HEIGHT, &variant).ThrowOnFailure();
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
76
(WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
79
(WINDOW_STYLE)
PInvokeCore
.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
System\Windows\Forms\Automation\UiaTextRange.cs (3)
876
private static int GetBackgroundColor() => (int)
PInvokeCore
.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW);
888
int lpy =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
894
private static int GetForegroundColor() => (int)
PInvokeCore
.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOWTEXT);
System\Windows\Forms\DeviceContextExtensions.cs (2)
35
using SelectObjectScope brushScope = new(hdc,
PInvokeCore
.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
37
PInvokeCore
.Rectangle(hdc, left, top, right, bottom);
System\Windows\Forms\Internals\MessageDecoder.cs (1)
26
if (messageId ==
PInvokeCore
.WM_PARENTNOTIFY)
System\Windows\Forms\Internals\ScaleHelper.cs (3)
67
return
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
306
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXICON),
307
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYICON));
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
13
using BufferScope<char> buffer = new(stackalloc char[(int)
PInvokeCore
.MAX_PATH]);
Windows\Win32\PInvoke.GetSystemMetrics.cs (1)
13
=> OsVersion.IsWindows10_1607OrGreater() ? GetSystemMetricsForDpi(nIndex, dpi) :
PInvokeCore
.GetSystemMetrics(nIndex);
Windows\Win32\PInvoke.TBM_GETPOS.cs (1)
8
public const uint TBM_GETPOS =
PInvokeCore
.WM_USER;
Windows\Win32\System\Com\ComSafeArrayScope.cs (2)
10
/// <see cref="
PInvokeCore
.SafeArrayCreate(VARENUM, uint, SAFEARRAYBOUND*)"/>
41
_value = new(
PInvokeCore
.SafeArrayCreate(VARENUM.VT_UNKNOWN, 1, &saBound));
Windows\Win32\System\Com\StandardDispatch.cs (2)
151
*pid =
PInvokeCore
.DISPID_UNKNOWN;
208
if (id ==
PInvokeCore
.DISPID_UNKNOWN)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (4)
76
if (desiredId !=
PInvokeCore
.DISPID_UNKNOWN && !IdInUse(desiredId))
264
bool foundLast = dispId ==
PInvokeCore
.DISPID_STARTENUM;
277
nextDispId =
PInvokeCore
.DISPID_UNKNOWN;
322
int dispid = info.GetCustomAttribute<DispIdAttribute>()?.Value ??
PInvokeCore
.DISPID_UNKNOWN;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47
LRESULT result =
PInvokeCore
.SendMessage(sender, message, (WPARAM)(BOOL)state, (LPARAM)i);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
34
using BufferScope<char> buffer = new((int)
PInvokeCore
.MAX_PATH + 1);
System.Windows.Forms.Primitives.Tests (109)
Interop\Gdi32\GetStockObjectTests.cs (2)
14
HGDIOBJ hgdiobj =
PInvokeCore
.GetStockObject((GET_STOCK_OBJECT_FLAGS)id);
17
PInvokeCore
.GetObject(hgdiobj, out LOGBRUSH logBrush);
Interop\Ole32\IPictureTests.cs (3)
59
dispatch->TryGetProperty(
PInvokeCore
.DISPID_PICT_TYPE, &variant).ThrowOnFailure();
62
dispatch->TryGetProperty(
PInvokeCore
.DISPID_PICT_HEIGHT, &variant).ThrowOnFailure();
65
dispatch->TryGetProperty(
PInvokeCore
.DISPID_PICT_WIDTH, &variant).ThrowOnFailure();
Interop\Oleaut32\ITypeInfoTests.cs (21)
22
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
36
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
50
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
66
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
86
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
106
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
140
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
152
Assert.Equal([(int)
PInvokeCore
.DISPID_PICT_WIDTH,
PInvokeCore
.DISPID_UNKNOWN], rgDispId);
164
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
178
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
192
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
214
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
231
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
245
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
254
Assert.Equal(
PInvokeCore
.DISPID_UNKNOWN, pTypeAttr->memidConstructor);
255
Assert.Equal(
PInvokeCore
.DISPID_UNKNOWN, pTypeAttr->memidDestructor);
284
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
297
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
326
((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
335
(int)
PInvokeCore
.DISPID_PICT_WIDTH,
Interop\Oleaut32\SAFEARRAYTests.cs (33)
60
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate((VARENUM)vt, 1, &saBound);
74
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
80
HRESULT hr =
PInvokeCore
.SafeArrayDestroy(psa);
96
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreateEx(VT_RECORD, 1, &saBound, recordInfo);
110
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
116
HRESULT hr =
PInvokeCore
.SafeArrayDestroy(psa);
185
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate((VARENUM)vt, 2, saBounds);
201
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
207
HRESULT hr =
PInvokeCore
.SafeArrayDestroy(psa);
221
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(VT_I4, 1, &saBound);
233
HRESULT hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices1, &value1);
237
hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices2, &value2);
241
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices1, &result);
245
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices2, &result);
255
PInvokeCore
.SafeArrayDestroy(psa);
268
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(VT_I4, 1, &saBound);
280
HRESULT hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices1, &value1);
284
hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices2, &value2);
288
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices1, &result);
292
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices2, &result);
302
PInvokeCore
.SafeArrayDestroy(psa);
322
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(VT_I4, 2, saBounds);
334
HRESULT hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices1, &value1);
338
hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices2, &value2);
342
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices1, &result);
346
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices2, &result);
356
PInvokeCore
.SafeArrayDestroy(psa);
376
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(VT_I4, 2, saBounds);
388
HRESULT hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices1, &value1);
392
hr =
PInvokeCore
.SafeArrayPutElement(psa, pIndices2, &value2);
396
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices1, &result);
400
hr =
PInvokeCore
.SafeArrayGetElement(psa, pIndices2, &result);
410
PInvokeCore
.SafeArrayDestroy(psa);
Interop\Oleaut32\VARIANTTests.cs (11)
5399
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(VT_I4, (uint)rank, saBounds);
5420
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(vt, 1, &saBound);
5424
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
5435
?
PInvokeCore
.SafeArrayPutElement(psa, &index, (void*)valuePtr)
5436
:
PInvokeCore
.SafeArrayPutElement(psa, &index, &value);
5459
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreate(vt, 2, saBounds);
5463
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
5478
?
PInvokeCore
.SafeArrayPutElement(psa, indices, (void*)valuePtr)
5479
:
PInvokeCore
.SafeArrayPutElement(psa, indices, &value);
5744
SAFEARRAY* psa =
PInvokeCore
.SafeArrayCreateEx(VT_RECORD, 1, &saBound, recordInfo);
5748
HRESULT hr =
PInvokeCore
.SafeArrayGetVartype(psa, &arrayVt);
Interop\User32\GetWindowTextTests.cs (3)
37
string result =
PInvokeCore
.GetWindowText(windowHandle);
61
case
PInvokeCore
.WM_GETTEXTLENGTH:
69
case
PInvokeCore
.WM_GETTEXT:
Interop\User32\LOGFONTWTests.cs (2)
37
HFONT handle =
PInvokeCore
.CreateFontIndirect(&logFont);
39
Assert.True(
PInvokeCore
.DeleteObject(handle));
Interop\User32\SystemParametersInfoWTests.cs (1)
15
bool result =
PInvokeCore
.SystemParametersInfo(ref data);
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
479
yield return new object[] { UIA_TEXTATTRIBUTE_ID.UIA_BackgroundColorAttributeId, (int)(uint)(COLORREF)
PInvokeCore
.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW) };
System\Windows\Forms\DeviceContextHdcScopeTests.cs (13)
30
PInvokeCore
.GetViewportOrgEx(scope, &origin);
45
PInvokeCore
.GetViewportOrgEx(scope, &origin);
60
PInvokeCore
.GetViewportOrgEx(scope, &origin);
75
PInvokeCore
.GetViewportOrgEx(scope, &origin);
97
PInvokeCore
.GetViewportOrgEx(hdc, &originalOrigin);
113
PInvokeCore
.GetViewportOrgEx(scope, &origin);
132
PInvokeCore
.GetViewportOrgEx(hdc, ¤tOrigin);
140
PInvokeCore
.GetViewportOrgEx(scope, &origin);
155
PInvokeCore
.GetViewportOrgEx(hdc, ¤tOrigin);
163
PInvokeCore
.GetViewportOrgEx(scope, &origin);
178
PInvokeCore
.GetViewportOrgEx(hdc, ¤tOrigin);
186
PInvokeCore
.GetViewportOrgEx(scope, &origin);
201
PInvokeCore
.GetViewportOrgEx(hdc, ¤tOrigin);
System\Windows\Forms\DeviceContextScopeTests.cs (7)
21
PInvokeCore
.SelectObject(dcScope, bitmapScope);
25
GDI_REGION_TYPE type =
PInvokeCore
.SelectClipRgn(dcScope, dcRegion);
61
HDC_MAP_MODE originalMapMode = (HDC_MAP_MODE)
PInvokeCore
.SetMapMode(dcScope, HDC_MAP_MODE.MM_HIMETRIC);
62
PInvokeCore
.SelectObject(dcScope, bitmapScope);
66
PInvokeCore
.SelectObject(dcScope, blueBrush);
75
currentMode = (HDC_MAP_MODE)
PInvokeCore
.SetMapMode(dcScope, HDC_MAP_MODE.MM_TEXT);
83
PInvokeCore
.SelectObject(dcScope, redBrush);
Windows\Win32\RegionTests.cs (2)
20
PInvokeCore
.SelectObject(hdc, hbitmap);
56
PInvokeCore
.SelectClipRgn(hdc, originalRegion);
Windows\Win32\System\Com\ComSafeArrayScopeTests.cs (1)
21
PInvokeCore
.SafeArrayDestroy(array);
Windows\Win32\System\Com\IDispatchTests.cs (6)
29
picture.Value->GetIDsOfNames(&riid, pRgszNames, (uint)rgszNames.Length,
PInvokeCore
.GetThreadLocale(), pRgDispId);
32
Assert.Equal([(int)
PInvokeCore
.DISPID_PICT_WIDTH,
PInvokeCore
.DISPID_UNKNOWN], rgDispId);
45
picture.Value->GetTypeInfo(0,
PInvokeCore
.GetThreadLocale(), typeInfo);
69
PInvokeCore
.DISPID_PICT_WIDTH,
71
PInvokeCore
.GetThreadLocale());
Windows\Win32\System\Com\SafeArrayScopeTests.cs (2)
83
PInvokeCore
.SafeArrayDestroy(array);
98
PInvokeCore
.SafeArrayDestroy(array);
Windows\Win32\System\Ole\ClassPropertyDispatchAdapterTests.cs (1)
18
adapter.TryGetNextDispId(
PInvokeCore
.DISPID_STARTENUM, out int result).Should().BeTrue();
System.Windows.Forms.Primitives.TestUtilities (21)
DeviceContextState.cs (7)
44
PInvokeCore
.GetObject(hfont, out LOGFONTW logfont);
48
PInvokeCore
.GetObject(hpen, out LOGPEN logpen);
52
PInvokeCore
.GetObject(hbrush, out LOGBRUSH logbrush);
143
HGDIOBJ hgdiobj =
PInvokeCore
.GetStockObject(selectionRecord->StockObject);
154
PInvokeCore
.GetObject(hgdiobj, out LOGFONTW logfont);
164
PInvokeCore
.GetObject(hgdiobj, out LOGBRUSH logBrush);
171
PInvokeCore
.GetObject(hgdiobj, out LOGPEN logPen);
GdiHelper.cs (2)
14
LogicalPixelsX =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
15
LogicalPixelsY =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
Metafiles\EmfScope.cs (4)
47
HDC metafileHdc =
PInvokeCore
.CreateEnhMetaFile(hdc, pFileName, lprc, pDesc);
70
_hemf =
PInvokeCore
.CloseEnhMetaFile(HDC);
83
PInvokeCore
.EnumEnhMetaFile(
253
PInvokeCore
.DeleteEnhMetaFile(HENHMETAFILE);
SystemCOLORs.cs (1)
72
COLORREF colorRef = (COLORREF)
PInvokeCore
.GetSysColor((SYS_COLOR_INDEX)i);
Win32\WindowClass.cs (6)
53
backgroundBrush =
PInvokeCore
.GetSysColorBrush(SYS_COLOR_INDEX.COLOR_WINDOW);
62
icon =
PInvokeCore
.LoadIcon(HINSTANCE.Null, (PCWSTR)(char*)
PInvokeCore
.IDI_APPLICATION);
205
Atom =
PInvokeCore
.GetClassLong(window, GET_CLASS_LONG_INDEX.GCW_ATOM);
221
case
PInvokeCore
.WM_DESTROY:
230
return
PInvokeCore
.DefWindowProc(hWnd, msg, wParam, lParam);
Windows\Win32\System\Com\ComClassFactory.cs (1)
68
PInvokeCore
.FreeLibrary(_instance);
System.Windows.Forms.Tests (1935)
ExceptionHandlingTests.cs (1)
17
PInvokeCore
.PostMessage(control, 9876);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (3)
270
int actual = (int)
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_GETTOPINDEX);
344
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_SETTOPINDEX, (WPARAM)(itemsCount - 1));
360
int actual = (int)
PInvokeCore
.SendMessage(comboBox, PInvoke.CB_GETTOPINDEX);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
297
PInvokeCore
.SendMessage(list, PInvoke.LVM_GETGROUPRECT, (WPARAM)listGroup.ID, ref groupRect);
333
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPRECT, (WPARAM)group.ID, ref groupRect);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (3)
24
PInvokeCore
.GetWindowRect(labelEdit, out RECT r);
174
PInvokeCore
.SendMessage(listView, PInvoke.LVM_EDITLABELW, wParam: 0);
187
PInvokeCore
.SendMessage(this, PInvoke.LVM_CANCELEDITLABEL);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (4)
50
PInvokeCore
.SendMessage(control, PInvoke.MCM_SETCURRENTVIEW, 0, view);
76
PInvokeCore
.SendMessage(control, PInvoke.MCM_SETCURRENTVIEW, 0, view);
142
PInvokeCore
.SendMessage(control, PInvoke.MCM_SETCURRENTVIEW, 0, (nint)view);
285
PInvokeCore
.SendMessage(control, PInvoke.MCM_SETCURRENTVIEW, 0, (nint)view);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
155
PInvokeCore
.SendMessage(control, PInvoke.MCM_SETCURRENTVIEW, 0, view);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
23
PInvokeCore
.GetWindowRect(labelEdit, out RECT r);
System\Windows\Forms\ApplicationTests.cs (2)
54
Assert.Equal(expectedLcid,
PInvokeCore
.GetThreadLocale());
61
Assert.Equal(expectedLcid,
PInvokeCore
.GetThreadLocale());
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (12)
47
Assert.Equal(
PInvokeCore
.DISPID_TEXT, Assert.IsType<DispIdAttribute>(property.Attributes[typeof(DispIdAttribute)]).Value);
63
Assert.Equal(
PInvokeCore
.DISPID_TEXT, Assert.IsType<DispIdAttribute>(property.Attributes[typeof(DispIdAttribute)]).Value);
79
Assert.Equal(
PInvokeCore
.DISPID_TEXT, Assert.IsType<DispIdAttribute>(property.Attributes[typeof(DispIdAttribute)]).Value);
95
Assert.Equal(
PInvokeCore
.DISPID_TEXT, Assert.IsType<DispIdAttribute>(property.Attributes[typeof(DispIdAttribute)]).Value);
1425
[DispId(
PInvokeCore
.DISPID_TEXT)]
1435
[DispId(
PInvokeCore
.DISPID_TEXT)]
1438
[DispId(
PInvokeCore
.DISPID_TEXT)]
1441
[DispId(
PInvokeCore
.DISPID_TEXT)]
1445
[DispId(
PInvokeCore
.DISPID_TEXT)]
1449
[DispId(
PInvokeCore
.DISPID_TEXT)]
1454
[DispId(
PInvokeCore
.DISPID_TEXT)]
1458
[DispId(
PInvokeCore
.DISPID_TEXT)]
System\Windows\Forms\AxHostTests.cs (10)
1614
VARIANT variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_HANDLE);
1616
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_HPAL);
1618
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_TYPE);
1620
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_WIDTH);
1622
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_HEIGHT);
1639
VARIANT variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_HANDLE);
1641
Assert.True(iPictureDisp.Value->TryGetProperty(
PInvokeCore
.DISPID_PICT_HPAL, &variant).Failed);
1642
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_TYPE);
1644
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_WIDTH);
1646
variant = iPictureDisp.Value->GetProperty(
PInvokeCore
.DISPID_PICT_HEIGHT);
System\Windows\Forms\ButtonBaseTests.cs (79)
5708
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.BM_GETSTATE));
5733
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.BM_GETSTATE));
5987
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.BM_GETSTATE));
6012
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.BM_GETSTATE));
7618
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7649
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7681
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7711
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
7720
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7761
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7806
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7849
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7889
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
7898
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
7943
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
7979
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8016
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8046
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
8060
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8106
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8156
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8204
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8244
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
8258
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
8448
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8484
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8521
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8551
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
8565
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8611
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8661
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8709
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8749
Msg = (int)
PInvokeCore
.WM_LBUTTONUP
8763
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
8814
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
8828
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 };
8829
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 };
8830
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 };
8831
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 };
8832
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 };
8833
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 };
8835
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 };
8836
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 };
8837
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 };
8838
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 };
8839
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 };
8840
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 };
8842
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 };
8843
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 };
8844
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 };
8845
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 };
8846
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 };
8847
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 };
8849
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 };
8850
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 };
8851
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 };
8852
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 };
8853
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 };
8854
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 };
8856
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 };
8857
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 1, 2 };
8858
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, -1, -2 };
8859
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 };
8860
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 };
8861
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 };
8863
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 };
8864
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 1, 2 };
8865
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, -1, -2 };
8866
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 };
8867
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 };
8868
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 };
8943
[InlineData((int)
PInvokeCore
.WM_LBUTTONUP)]
8944
[InlineData((int)
PInvokeCore
.WM_MBUTTONUP)]
8945
[InlineData((int)
PInvokeCore
.WM_RBUTTONUP)]
8946
[InlineData((int)
PInvokeCore
.WM_XBUTTONUP)]
9059
[InlineData((int)
PInvokeCore
.WM_LBUTTONUP)]
9060
[InlineData((int)
PInvokeCore
.WM_MBUTTONUP)]
9061
[InlineData((int)
PInvokeCore
.WM_RBUTTONUP)]
9062
[InlineData((int)
PInvokeCore
.WM_XBUTTONUP)]
System\Windows\Forms\ButtonTests.cs (5)
3388
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
3432
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
3468
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
3505
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
3548
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\ClipboardTests.cs (7)
466
PInvokeCore
.OleSetClipboard(dataScope).Succeeded.Should().BeTrue();
469
PInvokeCore
.OleGetClipboard(proxy).Succeeded.Should().BeTrue();
939
void* buffer =
PInvokeCore
.GlobalLock(hglobal);
940
int size = (int)
PInvokeCore
.GlobalSize(hglobal);
949
PInvokeCore
.GlobalUnlock(hglobal);
1335
PInvokeCore
.OleSetClipboard(iDataObject).Should().Be(HRESULT.S_OK);
1338
PInvokeCore
.OleGetClipboard(receivedIDataObject).Should().Be(HRESULT.S_OK);
System\Windows\Forms\ColumnHeaderTests.cs (9)
223
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNORDERARRAY, 3, ref result[0]));
449
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
479
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
669
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
701
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
1017
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
1206
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNW, (WPARAM)columnIndex, ref column));
1364
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNWIDTH));
1382
Assert.True(
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETCOLUMNWIDTH) > 0);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (8)
1117
int actualValue = (int)
PInvokeCore
.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit,
PInvokeCore
.EM_GETFIRSTVISIBLELINE);
1131
int actualValue = (int)
PInvokeCore
.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit,
PInvokeCore
.EM_GETLINECOUNT);
1157
int expectedLine = (int)
PInvokeCore
.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit,
PInvokeCore
.EM_LINEFROMCHAR, (WPARAM)charIndex);
1178
bool expectedValue =
PInvokeCore
.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit,
PInvokeCore
.EM_LINESCROLL, 0, newLine) != 0;
System\Windows\Forms\ComboBoxTests.cs (8)
1813
Msg = (int)
PInvokeCore
.WM_PAINT
1840
Msg = (int)
PInvokeCore
.WM_PAINT
1895
Msg = (int)
PInvokeCore
.WM_PAINT
1929
Msg = (int)
PInvokeCore
.WM_PAINT
1986
Msg = (int)
PInvokeCore
.WM_PAINT,
2024
Msg = (int)
PInvokeCore
.WM_PAINT,
2090
Msg = (int)
PInvokeCore
.WM_PAINT,
2135
Msg = (int)
PInvokeCore
.WM_PAINT,
System\Windows\Forms\CommonDialogTests.cs (3)
74
yield return new object[] {
PInvokeCore
.WM_INITDIALOG };
75
yield return new object[] {
PInvokeCore
.WM_SETFOCUS };
77
const int CDM_SETDEFAULTFOCUS = (int)
PInvokeCore
.WM_USER + 0x51;
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
113
PInvokeCore
.DeleteObject((HGDIOBJ)hBitmap);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (2)
96
HRESULT hr =
PInvokeCore
.CoCreateInstance(
114
HRESULT hr =
PInvokeCore
.CoCreateInstance(
System\Windows\Forms\ContainerControlTests.cs (3)
1241
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
1271
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
1302
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
System\Windows\Forms\ControlPaintTests.cs (15)
40
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
49
PInvokeCore
.DeleteObject(hBitmap);
65
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
77
PInvokeCore
.DeleteObject(hBitmap);
111
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
120
PInvokeCore
.DeleteObject(hBitmap);
143
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
155
PInvokeCore
.DeleteObject(hBitmap);
160
PInvokeCore
.DeleteObject(monochromeMask);
176
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
188
PInvokeCore
.DeleteObject(hBitmap);
219
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
228
PInvokeCore
.DeleteObject(hBitmap);
244
Assert.Equal(OBJ_TYPE.OBJ_BITMAP, (OBJ_TYPE)
PInvokeCore
.GetObjectType(hBitmap));
256
PInvokeCore
.DeleteObject(hBitmap);
System\Windows\Forms\ControlTests.Methods.cs (267)
5265
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.None, false };
5266
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.A, false };
5267
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.Tab, true };
5268
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.Menu, true };
5269
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.F10, true };
5271
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.None, false };
5272
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.A, false };
5273
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.Tab, true };
5274
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.Menu, true };
5275
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.F10, true };
5277
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.None, false };
5278
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.A, false };
5279
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.Tab, false };
5280
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.Menu, false };
5281
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.F10, false };
5283
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.None, false };
5284
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.A, false };
5285
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.Tab, false };
5286
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.Menu, false };
5287
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.F10, false };
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 };
5295
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.None, false };
5296
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.A, false };
5297
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.Tab, false };
5298
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.Menu, false };
5299
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.F10, false };
5301
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.None, false };
5302
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.A, false };
5303
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.Tab, false };
5304
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.Menu, false };
5305
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.F10, false };
5307
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.None, false };
5308
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.A, false };
5309
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.Tab, false };
5310
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.Menu, false };
5311
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.F10, false };
5351
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.None, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5352
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.None, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5353
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.None, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5354
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.None, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
5355
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.A, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5356
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.A, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5357
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.A, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5358
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, Keys.A, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
5360
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.None, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5361
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.None, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5362
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.None, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5363
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.None, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
5364
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.A, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5365
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.A, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5366
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.A, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5367
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, Keys.A, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
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 };
5378
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.None, false, false, false, true, false, false, 0, 0, 0, 0, 1 };
5379
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.None, false, false, false, true, true, true, 0, 0, 0, 0, 1 };
5380
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.None, false, false, false, false, true, true, 0, 0, 0, 0, 1 };
5381
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.None, false, false, false, false, false, false, 0, 0, 0, 0, 1 };
5382
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.A, false, false, false, true, false, false, 0, 0, 0, 0, 1 };
5383
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.A, false, false, false, true, true, true, 0, 0, 0, 0, 1 };
5384
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.A, false, false, false, false, true, true, 0, 0, 0, 0, 1 };
5385
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, Keys.A, false, false, false, false, false, false, 0, 0, 0, 0, 1 };
5387
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.None, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5388
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, Keys.A, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5390
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.None, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5391
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, Keys.A, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
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 };
5651
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, '2', handled, 1, 0, 0, (IntPtr)50 };
5652
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, '1', handled, 1, 0, 0, (IntPtr)49 };
5653
yield return new object[] { (int)
PInvokeCore
.WM_IME_CHAR, '2', handled, 1, 0, 0, (IntPtr)50 };
5654
yield return new object[] { (int)
PInvokeCore
.WM_IME_CHAR, '1', handled, 1, 0, 0, (IntPtr)49 };
5655
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, '2', handled, 0, 1, 0, (IntPtr)2 };
5656
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, '2', handled, 0, 1, 0, (IntPtr)2 };
5657
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, '2', handled, 0, 0, 1, (IntPtr)2 };
5658
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, '2', handled, 0, 0, 1, (IntPtr)2 };
5812
[InlineData((int)
PInvokeCore
.WM_CHAR)]
5813
[InlineData((int)
PInvokeCore
.WM_SYSCHAR)]
5831
Msg = (int)
PInvokeCore
.WM_IME_CHAR
5869
[InlineData((int)
PInvokeCore
.WM_KEYDOWN)]
5870
[InlineData((int)
PInvokeCore
.WM_SYSKEYDOWN)]
5871
[InlineData((int)
PInvokeCore
.WM_KEYUP)]
5872
[InlineData((int)
PInvokeCore
.WM_SYSKEYUP)]
5899
Msg = (int)
PInvokeCore
.WM_IME_CHAR
12385
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
12416
Msg = (int)
PInvokeCore
.WM_CAPTURECHANGED,
12439
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
12465
Msg = (int)
PInvokeCore
.WM_CANCELMODE,
12502
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
12544
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
12574
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
12624
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
12658
Msg = (int)
PInvokeCore
.WM_DPICHANGED_AFTERPARENT,
12701
Msg = (int)
PInvokeCore
.WM_DPICHANGED_AFTERPARENT,
12740
Msg = (int)
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT,
12783
Msg = (int)
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT,
12828
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
12869
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
12916
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
12964
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
12990
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
13013
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
13034
Msg = (int)
PInvokeCore
.WM_IME_NOTIFY,
13060
Msg = (int)
PInvokeCore
.WM_IME_NOTIFY,
13087
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
13118
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
13151
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13174
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13211
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13253
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13283
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13328
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
13348
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 };
13349
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 };
13350
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 };
13351
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 };
13352
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 };
13353
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 };
13355
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 0, 0 };
13356
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 1, 2 };
13357
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, -1, -2 };
13358
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 0, 0 };
13359
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 1, 2 };
13360
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, -1, -2 };
13362
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 };
13363
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 };
13364
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 };
13365
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 };
13366
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 };
13367
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 };
13369
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 0, 0 };
13370
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 1, 2 };
13371
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, -1, -2 };
13372
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 0, 0 };
13373
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 1, 2 };
13374
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, -1, -2 };
13376
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 };
13377
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 };
13378
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 };
13379
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 };
13380
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 };
13381
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 };
13383
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 0, 0 };
13384
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 1, 2 };
13385
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, -1, -2 };
13386
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 0, 0 };
13387
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 1, 2 };
13388
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, -1, -2 };
13390
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 };
13391
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 };
13392
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 };
13393
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 };
13394
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 };
13395
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 };
13397
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 };
13398
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 1, 2 };
13399
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, -1, -2 };
13400
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 };
13401
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 };
13402
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 };
13404
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 };
13405
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 1, 2 };
13406
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, -1, -2 };
13407
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 };
13408
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 };
13409
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 };
13411
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 0, 0 };
13412
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 1, 2 };
13413
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, -1, -2 };
13414
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 0, 0 };
13415
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 1, 2 };
13416
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, -1, -2 };
13418
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 0, 0 };
13419
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 1, 2 };
13420
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, -1, -2 };
13421
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 0, 0 };
13422
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 1, 2 };
13423
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, -1, -2 };
13425
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 0, 0 };
13426
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 1, 2 };
13427
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, -1, -2 };
13428
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 0, 0 };
13429
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 1, 2 };
13430
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, -1, -2 };
13505
[InlineData((int)
PInvokeCore
.WM_LBUTTONDOWN)]
13506
[InlineData((int)
PInvokeCore
.WM_LBUTTONDBLCLK)]
13507
[InlineData((int)
PInvokeCore
.WM_MBUTTONDOWN)]
13508
[InlineData((int)
PInvokeCore
.WM_MBUTTONDBLCLK)]
13509
[InlineData((int)
PInvokeCore
.WM_RBUTTONDOWN)]
13510
[InlineData((int)
PInvokeCore
.WM_RBUTTONDBLCLK)]
13511
[InlineData((int)
PInvokeCore
.WM_XBUTTONDOWN)]
13512
[InlineData((int)
PInvokeCore
.WM_XBUTTONDBLCLK)]
13625
[InlineData((int)
PInvokeCore
.WM_LBUTTONDOWN)]
13626
[InlineData((int)
PInvokeCore
.WM_LBUTTONDBLCLK)]
13627
[InlineData((int)
PInvokeCore
.WM_MBUTTONDOWN)]
13628
[InlineData((int)
PInvokeCore
.WM_MBUTTONDBLCLK)]
13629
[InlineData((int)
PInvokeCore
.WM_RBUTTONDOWN)]
13630
[InlineData((int)
PInvokeCore
.WM_RBUTTONDBLCLK)]
13631
[InlineData((int)
PInvokeCore
.WM_XBUTTONDOWN)]
13632
[InlineData((int)
PInvokeCore
.WM_XBUTTONDBLCLK)]
13680
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
13711
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
13725
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 };
13726
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 };
13727
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 };
13728
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 };
13729
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 };
13730
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 };
13732
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 };
13733
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 };
13734
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 };
13735
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 };
13736
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 };
13737
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 };
13739
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 };
13740
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 };
13741
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 };
13742
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 };
13743
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 };
13744
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 };
13746
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 };
13747
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 };
13748
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 };
13749
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 };
13750
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 };
13751
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 };
13753
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 };
13754
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 1, 2 };
13755
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, -1, -2 };
13756
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 };
13757
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 };
13758
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 };
13760
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 };
13761
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 1, 2 };
13762
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, -1, -2 };
13763
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 };
13764
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 };
13765
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 };
13840
[InlineData((int)
PInvokeCore
.WM_LBUTTONUP)]
13841
[InlineData((int)
PInvokeCore
.WM_MBUTTONUP)]
13842
[InlineData((int)
PInvokeCore
.WM_RBUTTONUP)]
13843
[InlineData((int)
PInvokeCore
.WM_XBUTTONUP)]
13956
[InlineData((int)
PInvokeCore
.WM_LBUTTONUP)]
13957
[InlineData((int)
PInvokeCore
.WM_MBUTTONUP)]
13958
[InlineData((int)
PInvokeCore
.WM_RBUTTONUP)]
13959
[InlineData((int)
PInvokeCore
.WM_XBUTTONUP)]
14007
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14038
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14076
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14132
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14192
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14236
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14280
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14324
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
14345
Msg = (int)
PInvokeCore
.WM_SETFONT,
14368
Msg = (int)
PInvokeCore
.WM_SETFONT,
14383
if (m.Msg == (int)
PInvokeCore
.WM_NCCREATE)
System\Windows\Forms\ControlTests.Properties.cs (5)
255
Assert.Equal(HRESULT.S_OK,
PInvokeCore
.RegisterDragDrop(control, dropTarget));
10530
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_UPDATEUISTATE, (WPARAM)wParam);
10589
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_UPDATEUISTATE, (WPARAM)wParam);
System\Windows\Forms\DataFormatsTests.ClipboardTests.cs (2)
17
uint manuallyRegisteredFormatId =
PInvokeCore
.RegisterClipboardFormat("ManuallyRegisteredFormat");
18
uint longManuallyRegisteredFormatId =
PInvokeCore
.RegisterClipboardFormat(new string('a', 255));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (20)
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 };
1526
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, wParam, '2', handled, handled, 1, 0, 0, (IntPtr)50 };
1527
yield return new object[] { (int)
PInvokeCore
.WM_SYSCHAR, wParam, '1', handled, handled, 1, 0, 0, (IntPtr)49 };
1528
yield return new object[] { (int)
PInvokeCore
.WM_IME_CHAR, wParam, '2', handled, handled, 1, 0, 0, (IntPtr)50 };
1529
yield return new object[] { (int)
PInvokeCore
.WM_IME_CHAR, wParam, '1', handled, handled, 1, 0, 0, (IntPtr)49 };
1530
yield return new object[] { (int)
PInvokeCore
.WM_KEYDOWN, wParam, '2', handled, handled, 0, 1, 0, wParam };
1531
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYDOWN, wParam, '2', handled, handled, 0, 1, 0, wParam };
1532
yield return new object[] { (int)
PInvokeCore
.WM_KEYUP, wParam, '2', handled, handled, 0, 0, 1, wParam };
1533
yield return new object[] { (int)
PInvokeCore
.WM_SYSKEYUP, wParam, '2', handled, handled, 0, 0, 1, wParam };
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)]
1692
[InlineData((int)
PInvokeCore
.WM_SYSCHAR)]
1710
Msg = (int)
PInvokeCore
.WM_IME_CHAR
1748
[InlineData((int)
PInvokeCore
.WM_KEYDOWN)]
1749
[InlineData((int)
PInvokeCore
.WM_SYSKEYDOWN)]
1750
[InlineData((int)
PInvokeCore
.WM_KEYUP)]
1751
[InlineData((int)
PInvokeCore
.WM_SYSKEYUP)]
1778
Msg = (int)
PInvokeCore
.WM_IME_CHAR
System\Windows\Forms\DataObjectTests.cs (8)
2474
HGLOBAL handle =
PInvokeCore
.GlobalAlloc(
2488
PInvokeCore
.GlobalFree(handle);
2517
HGLOBAL handle =
PInvokeCore
.GlobalAlloc(
2531
PInvokeCore
.GlobalFree(handle);
2597
HGLOBAL handle =
PInvokeCore
.GlobalAlloc(
2616
PInvokeCore
.GlobalFree(handle);
2638
HGLOBAL handle =
PInvokeCore
.GlobalAlloc(
2655
PInvokeCore
.GlobalFree(handle);
System\Windows\Forms\DragDropFormatTests.cs (7)
26
cfFormat = (short)
PInvokeCore
.RegisterClipboardFormat("InShellDragLoop"),
37
unionmember =
PInvokeCore
.GlobalAlloc(
49
cfFormat = (short)
PInvokeCore
.RegisterClipboardFormat("DragContext"),
76
int handleSize = (int)
PInvokeCore
.GlobalSize(dragDropFormat.Medium.hGlobal);
145
=> (HGLOBAL)(nint)
PInvokeCore
.OleDuplicateData(
187
void* basePtr =
PInvokeCore
.GlobalLock(handle);
192
PInvokeCore
.GlobalUnlock(handle);
System\Windows\Forms\DragDropHelperTests.cs (21)
62
yield return new object[] { new DataObject(), DropImageType.Copy, new string('*', (int)
PInvokeCore
.MAX_PATH), string.Empty };
63
yield return new object[] { new DataObject(), DropImageType.Copy, string.Empty, new string('*', (int)
PInvokeCore
.MAX_PATH) };
91
[InlineData(
PInvokeCore
.CFSTR_DROPDESCRIPTION, true)]
92
[InlineData(
PInvokeCore
.CFSTR_INDRAGLOOP, true)]
100
cfFormat = (short)
PInvokeCore
.RegisterClipboardFormat(format),
121
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
126
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
148
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
153
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
215
dataObject.TryGetData(
PInvokeCore
.CFSTR_DROPDESCRIPTION, autoConvert: false, out DragDropFormat dragDropFormat).Should().BeTrue();
217
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
222
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
297
e.Data.TryGetData(
PInvokeCore
.CFSTR_DROPDESCRIPTION, out DragDropFormat dragDropFormat).Should().BeTrue();
298
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
303
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
324
dataObject.TryGetData(
PInvokeCore
.CFSTR_DROPDESCRIPTION, autoConvert: false, out DragDropFormat dragDropFormat).Should().BeTrue();
325
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
330
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
355
dataObject.TryGetData(
PInvokeCore
.CFSTR_INDRAGLOOP, out DragDropFormat dragDropFormat).Should().BeTrue();
356
void* basePtr =
PInvokeCore
.GlobalLock(dragDropFormat.Medium.hGlobal);
358
PInvokeCore
.GlobalUnlock(dragDropFormat.Medium.hGlobal);
System\Windows\Forms\ErrorProviderTests.cs (2)
33
Assert.Equal(provider.Icon.Width,
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSMICON));
34
Assert.Equal(provider.Icon.Height,
PInvokeCore
.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSMICON));
System\Windows\Forms\FontDialogTests.cs (11)
635
yield return new object[] { showColor, (int)
PInvokeCore
.WM_INITDIALOG, IntPtr.Zero };
636
yield return new object[] { showColor, (int)
PInvokeCore
.WM_SETFOCUS, IntPtr.Zero };
637
yield return new object[] { showColor, (int)
PInvokeCore
.WM_COMMAND, IntPtr.Zero };
639
const uint CDM_SETDEFAULTFOCUS = (int)
PInvokeCore
.WM_USER + 0x51;
665
yield return new object[] { showColor, (int)
PInvokeCore
.WM_INITDIALOG, IntPtr.Zero, 0 };
666
yield return new object[] { showColor, (int)
PInvokeCore
.WM_SETFOCUS, IntPtr.Zero, 0 };
667
yield return new object[] { showColor, (int)
PInvokeCore
.WM_COMMAND, IntPtr.Zero, 0 };
668
yield return new object[] { showColor, (int)
PInvokeCore
.WM_COMMAND, (IntPtr)0x402, 1 };
670
const uint CDM_SETDEFAULTFOCUS = (int)
PInvokeCore
.WM_USER + 0x51;
697
if (m.Msg == (int)
PInvokeCore
.WM_CHOOSEFONT_GETLOGFONT)
720
Assert.Throws<ArgumentException>(() => dialog.HookProc(IntPtr.Zero, (int)
PInvokeCore
.WM_COMMAND, 0x402, IntPtr.Zero));
System\Windows\Forms\FormTests.cs (28)
199
HICON hSmallIcon = (HICON)
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
202
HICON hLargeIcon = (HICON)
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_BIG);
206
WINDOW_EX_STYLE extendedStyle = (WINDOW_EX_STYLE)
PInvokeCore
.GetWindowLong(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE);
991
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_MAXIMIZE);
1000
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_SYSCOMMAND, (WPARAM)PInvoke.SC_RESTORE);
1082
HICON hSmallIcon = (HICON)
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
1083
HICON hLargeIcon = (HICON)
PInvokeCore
.SendMessage(form,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_BIG);
1094
WINDOW_EX_STYLE extendedStyle = unchecked((WINDOW_EX_STYLE)(long)
PInvokeCore
.GetWindowLong(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE));
1100
extendedStyle = unchecked((WINDOW_EX_STYLE)(long)
PInvokeCore
.GetWindowLong(form, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE));
1283
HICON hSmallIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
1285
HICON hLargeIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_BIG);
1290
hSmallIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
1292
hLargeIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_BIG);
1297
hSmallIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
1299
hLargeIcon = (HICON)
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETICON, (WPARAM)PInvoke.ICON_BIG);
2683
var message = Message.Create(HWND.Null,
PInvokeCore
.WM_QUERYENDSESSION, wparam: default, lparam: default);
System\Windows\Forms\GroupBoxTests.cs (11)
2076
yield return new object[] {
PInvokeCore
.WM_ERASEBKGND };
2077
yield return new object[] {
PInvokeCore
.WM_PRINTCLIENT };
2081
[InlineData((int)
PInvokeCore
.WM_ERASEBKGND)]
2082
[InlineData((int)
PInvokeCore
.WM_PRINTCLIENT)]
2111
[InlineData((int)
PInvokeCore
.WM_ERASEBKGND)]
2112
[InlineData((int)
PInvokeCore
.WM_PRINTCLIENT)]
2152
[InlineData((int)
PInvokeCore
.WM_ERASEBKGND)]
2153
[InlineData((int)
PInvokeCore
.WM_PRINTCLIENT)]
2197
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
2242
Msg = (int)
PInvokeCore
.WM_PRINTCLIENT,
2285
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\HtmlToClrEventProxyTest.cs (2)
22
dispatchEx.Value->GetNextDispID(fdexEnumAll,
PInvokeCore
.DISPID_UNKNOWN, out int id);
78
uint locale =
PInvokeCore
.GetThreadLocale();
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (540)
521
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
522
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
524
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
526
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
538
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
539
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
541
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
543
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
555
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
556
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
558
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
560
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
572
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
573
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
575
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
577
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
610
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
611
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
613
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
615
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
627
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
628
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
630
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
632
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
644
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
645
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
647
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
649
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
661
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
662
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
664
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
666
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1491
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1492
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1504
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1505
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1507
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1519
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1520
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1522
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1524
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1536
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1537
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1539
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1541
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1543
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
1570
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1571
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1583
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1584
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1586
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1598
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1599
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1601
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1603
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1615
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1616
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1618
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1620
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1622
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
1652
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1653
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1665
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1666
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1668
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1680
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1681
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1683
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1685
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1697
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1698
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1700
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1702
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1704
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
1734
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1735
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1747
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1748
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1750
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1762
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1763
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1765
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1767
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1779
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
1780
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
1782
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
1784
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
1786
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2156
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2170
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2171
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2173
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2175
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2177
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2341
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2342
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2344
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2346
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2348
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2360
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2361
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2363
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2365
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2367
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2393
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2394
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2396
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2398
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2400
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2412
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2413
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2415
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2417
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2419
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2448
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2449
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2451
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2453
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2455
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2467
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2468
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2470
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2472
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2474
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2503
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2504
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2506
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2508
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2510
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2522
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2523
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2525
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2527
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2529
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
2849
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2860
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
2861
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
2863
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
2865
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
2867
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3018
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3019
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3021
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3023
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3025
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3039
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3040
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3042
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3044
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3046
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3075
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3076
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3078
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3080
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3082
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3096
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3097
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3099
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3101
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3103
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3135
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3136
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3138
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3140
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3142
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3156
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3157
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3159
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3161
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3163
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3195
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3196
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3198
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3200
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3202
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3216
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3217
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3219
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3221
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3223
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3586
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3600
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3601
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
3603
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
3605
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
3607
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
3812
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3824
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3849
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3861
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3887
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3899
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3925
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
3937
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4314
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4315
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4327
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4328
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4330
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4342
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4343
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4345
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4347
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4359
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4360
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4362
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4364
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4366
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
4393
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4394
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4406
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4407
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4409
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4421
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4422
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4424
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4426
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4438
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4439
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4441
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4443
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4445
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
4475
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4476
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4488
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4489
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4491
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4503
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4504
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4506
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4508
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4520
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4521
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4523
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4525
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4527
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
4557
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4558
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4570
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4571
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4573
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4585
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4586
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4588
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4590
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4602
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4603
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4605
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4607
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4609
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
4969
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4983
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
4984
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
4986
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
4988
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
4990
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
5261
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5262
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5264
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5276
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5277
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5279
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5291
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5292
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5304
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5336
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5337
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5339
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5352
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5353
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5355
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5368
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5369
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5381
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5413
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5414
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5416
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5428
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5429
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5431
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5443
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5444
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5456
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5491
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5492
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5494
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5507
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5508
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5510
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
5523
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
5524
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
5536
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6178
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6179
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6181
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
6193
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6194
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6206
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6238
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6239
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6241
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
6254
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6255
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6267
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6299
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6300
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6302
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
6314
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6315
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6327
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6362
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6363
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6365
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
6378
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
6379
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
6391
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7324
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7325
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7327
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7329
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7341
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7342
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7344
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7346
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7358
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7359
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7361
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7363
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7375
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7376
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7378
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7380
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7415
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7416
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7418
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7420
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7432
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7433
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7435
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7437
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7449
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7450
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7452
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7454
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
7466
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
7467
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
7469
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
7471
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8296
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8297
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8309
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8310
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8312
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8324
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8325
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8327
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8329
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8341
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8342
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8344
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8346
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8348
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
8375
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8376
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8388
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8389
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8391
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8403
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8404
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8406
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8408
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8420
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8421
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8423
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8425
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8427
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
8457
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8458
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8470
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8471
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8473
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8485
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8486
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8488
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8490
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8502
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8503
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8505
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8507
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8509
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
8539
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8540
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8552
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8553
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8555
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8567
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8568
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8570
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8572
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8584
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8585
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8587
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8589
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8591
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
8961
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8975
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
8976
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
8978
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
8980
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
8982
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
9134
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9146
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9171
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9183
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9209
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9221
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9247
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9259
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9636
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9637
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9649
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9650
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9652
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9664
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9665
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9667
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9669
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9681
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9682
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9684
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9686
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9688
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
9715
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9716
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9728
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9729
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9731
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9743
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9744
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9746
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9748
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9760
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9761
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9763
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9765
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9767
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
9797
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9798
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9810
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9811
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9813
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9825
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9826
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9828
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9830
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9842
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9843
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9845
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9847
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9849
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
9879
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9880
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9892
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9893
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9895
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9907
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9908
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9910
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9912
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9924
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
9925
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
9927
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
9929
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
9931
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
10291
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10305
Assert.Equal(4, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10306
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10308
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10310
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 2, (nint)textBuffer);
10312
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 3, (nint)textBuffer);
10583
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10584
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10586
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10598
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10599
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10601
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10613
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10614
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10626
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10658
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10659
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10661
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10674
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10675
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10677
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10690
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10691
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10703
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10735
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10736
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10738
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10750
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10751
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10753
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10765
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10766
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10778
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10813
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10814
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10816
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10829
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10830
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10832
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
10845
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
10846
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
10858
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11500
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11501
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11503
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
11515
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11516
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11528
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11560
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11561
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11563
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
11576
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11577
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11589
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11621
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11622
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11624
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
11636
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11637
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11649
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11684
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11685
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11687
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 1, (nint)textBuffer);
11700
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
11701
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETTEXT, 0, (nint)textBuffer);
11713
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.LB_GETCOUNT));
System\Windows\Forms\ListBoxTests.cs (28)
771
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETITEMRECT, 0, ref rc));
1464
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETHORIZONTALEXTENT));
1467
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETHORIZONTALEXTENT));
1803
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETITEMHEIGHT) == 25);
2632
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2636
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2640
Assert.Equal(-1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2659
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2661
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
2666
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2667
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
2672
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
2673
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3145
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3149
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3153
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3157
Assert.Equal(-1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3176
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3178
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3183
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3185
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3190
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3191
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3196
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETCURSEL));
3197
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3327
PInvokeCore
.SendMessage(control, MessageId.WM_REFLECT |
PInvokeCore
.WM_COMMAND, WPARAM.MAKEWPARAM(0, (int)PInvoke.LBN_SELCHANGE));
4433
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LB_GETTOPINDEX));
System\Windows\Forms\ListViewGroupTests.cs (20)
222
PInvokeCore
.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, groupImageList.Handle));
230
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
237
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
362
PInvokeCore
.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, groupImageList.Handle));
370
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
377
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
507
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
517
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
620
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
629
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
763
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
773
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
881
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
891
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1015
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
1025
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1138
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
1146
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1286
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
1295
Assert.Equal(1,
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
System\Windows\Forms\ListViewInsertionMarkTests.cs (28)
101
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
105
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
113
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
117
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
125
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
129
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
152
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
156
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
164
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
168
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
176
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
180
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
377
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
381
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
389
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
393
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
474
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
478
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
487
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
491
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
499
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
503
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
529
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
533
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
542
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
546
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
554
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
558
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETINSERTMARKCOLOR));
System\Windows\Forms\ListViewTests.cs (22)
517
Assert.Equal(0x563412, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETBKCOLOR));
1379
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETTEXTCOLOR));
1849
Assert.Equal(0x563412, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETBKCOLOR));
1860
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETTEXTCOLOR));
1871
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
1933
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPCOUNT));
1944
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup1));
1959
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 1, ref lvgroup2));
1979
Assert.Equal(expected, (nint)
PInvokeCore
.SendMessage(control, PInvoke.LVM_GETTEXTBKCOLOR));
1988
Assert.Equal(version, (int)
PInvokeCore
.SendMessage(control, PInvoke.CCM_GETVERSION));
4486
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_KEYDOWN);
5452
PInvokeCore
.PostMessage(listView,
PInvokeCore
.WM_LBUTTONUP, 0, PARAM.FromPoint(subItemLocation));
5453
PInvokeCore
.SendMessage(listView,
PInvokeCore
.WM_LBUTTONDOWN, 1, PARAM.FromPoint(subItemLocation));
5456
PInvokeCore
.SendMessage(listView,
PInvokeCore
.WM_TIMER, (WPARAM)(nint)listView.TestAccessor().Dynamic.LVLABELEDITTIMER);
5458
nint editControlHandle =
PInvokeCore
.SendMessage(listView, PInvoke.LVM_GETEDITCONTROL);
5462
PInvokeCore
.SendMessage(listView, PInvoke.LVM_CANCELEDITLABEL);
5491
PInvokeCore
.SendMessage(listView,
PInvokeCore
.WM_KEYUP, (WPARAM)keyCode, (LPARAM)lParam);
System\Windows\Forms\MdiControlStripTests.cs (1)
333
PInvokeCore
.DestroyIcon(hicon);
System\Windows\Forms\MenuStripTests.cs (3)
756
Msg = (int)
PInvokeCore
.WM_MOUSEACTIVATE,
781
Msg = (int)
PInvokeCore
.WM_MOUSEACTIVATE,
813
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\MessageTests.cs (263)
224
yield return new object[] {
PInvokeCore
.WM_NULL, " (WM_NULL)" };
225
yield return new object[] {
PInvokeCore
.WM_CREATE, " (WM_CREATE)" };
226
yield return new object[] {
PInvokeCore
.WM_DESTROY, " (WM_DESTROY)" };
227
yield return new object[] {
PInvokeCore
.WM_MOVE, " (WM_MOVE)" };
228
yield return new object[] {
PInvokeCore
.WM_SIZE, " (WM_SIZE)" };
229
yield return new object[] {
PInvokeCore
.WM_ACTIVATE, " (WM_ACTIVATE)" };
230
yield return new object[] {
PInvokeCore
.WM_SETFOCUS, " (WM_SETFOCUS)" };
231
yield return new object[] {
PInvokeCore
.WM_KILLFOCUS, " (WM_KILLFOCUS)" };
232
yield return new object[] {
PInvokeCore
.WM_ENABLE, " (WM_ENABLE)" };
233
yield return new object[] {
PInvokeCore
.WM_SETREDRAW, " (WM_SETREDRAW)" };
234
yield return new object[] {
PInvokeCore
.WM_SETTEXT, " (WM_SETTEXT)" };
235
yield return new object[] {
PInvokeCore
.WM_GETTEXT, " (WM_GETTEXT)" };
236
yield return new object[] {
PInvokeCore
.WM_GETTEXTLENGTH, " (WM_GETTEXTLENGTH)" };
237
yield return new object[] {
PInvokeCore
.WM_PAINT, " (WM_PAINT)" };
238
yield return new object[] {
PInvokeCore
.WM_CLOSE, " (WM_CLOSE)" };
239
yield return new object[] {
PInvokeCore
.WM_QUERYENDSESSION, " (WM_QUERYENDSESSION)" };
240
yield return new object[] {
PInvokeCore
.WM_QUIT, " (WM_QUIT)" };
241
yield return new object[] {
PInvokeCore
.WM_QUERYOPEN, " (WM_QUERYOPEN)" };
242
yield return new object[] {
PInvokeCore
.WM_ERASEBKGND, " (WM_ERASEBKGND)" };
243
yield return new object[] {
PInvokeCore
.WM_SYSCOLORCHANGE, " (WM_SYSCOLORCHANGE)" };
244
yield return new object[] {
PInvokeCore
.WM_ENDSESSION, " (WM_ENDSESSION)" };
245
yield return new object[] {
PInvokeCore
.WM_SHOWWINDOW, " (WM_SHOWWINDOW)" };
246
yield return new object[] {
PInvokeCore
.WM_WININICHANGE, " (WM_WININICHANGE)" };
247
yield return new object[] {
PInvokeCore
.WM_DEVMODECHANGE, " (WM_DEVMODECHANGE)" };
248
yield return new object[] {
PInvokeCore
.WM_ACTIVATEAPP, " (WM_ACTIVATEAPP)" };
249
yield return new object[] {
PInvokeCore
.WM_FONTCHANGE, " (WM_FONTCHANGE)" };
250
yield return new object[] {
PInvokeCore
.WM_TIMECHANGE, " (WM_TIMECHANGE)" };
251
yield return new object[] {
PInvokeCore
.WM_CANCELMODE, " (WM_CANCELMODE)" };
252
yield return new object[] {
PInvokeCore
.WM_SETCURSOR, " (WM_SETCURSOR)" };
253
yield return new object[] {
PInvokeCore
.WM_MOUSEACTIVATE, " (WM_MOUSEACTIVATE)" };
254
yield return new object[] {
PInvokeCore
.WM_CHILDACTIVATE, " (WM_CHILDACTIVATE)" };
255
yield return new object[] {
PInvokeCore
.WM_QUEUESYNC, " (WM_QUEUESYNC)" };
256
yield return new object[] {
PInvokeCore
.WM_GETMINMAXINFO, " (WM_GETMINMAXINFO)" };
257
yield return new object[] {
PInvokeCore
.WM_PAINTICON, " (WM_PAINTICON)" };
258
yield return new object[] {
PInvokeCore
.WM_ICONERASEBKGND, " (WM_ICONERASEBKGND)" };
259
yield return new object[] {
PInvokeCore
.WM_NEXTDLGCTL, " (WM_NEXTDLGCTL)" };
260
yield return new object[] {
PInvokeCore
.WM_SPOOLERSTATUS, " (WM_SPOOLERSTATUS)" };
261
yield return new object[] {
PInvokeCore
.WM_DRAWITEM, " (WM_DRAWITEM)" };
262
yield return new object[] {
PInvokeCore
.WM_MEASUREITEM, " (WM_MEASUREITEM)" };
263
yield return new object[] {
PInvokeCore
.WM_DELETEITEM, " (WM_DELETEITEM)" };
264
yield return new object[] {
PInvokeCore
.WM_VKEYTOITEM, " (WM_VKEYTOITEM)" };
265
yield return new object[] {
PInvokeCore
.WM_CHARTOITEM, " (WM_CHARTOITEM)" };
266
yield return new object[] {
PInvokeCore
.WM_SETFONT, " (WM_SETFONT)" };
267
yield return new object[] {
PInvokeCore
.WM_GETFONT, " (WM_GETFONT)" };
268
yield return new object[] {
PInvokeCore
.WM_SETHOTKEY, " (WM_SETHOTKEY)" };
269
yield return new object[] {
PInvokeCore
.WM_GETHOTKEY, " (WM_GETHOTKEY)" };
270
yield return new object[] {
PInvokeCore
.WM_QUERYDRAGICON, " (WM_QUERYDRAGICON)" };
271
yield return new object[] {
PInvokeCore
.WM_COMPAREITEM, " (WM_COMPAREITEM)" };
272
yield return new object[] {
PInvokeCore
.WM_GETOBJECT, " (WM_GETOBJECT)" };
273
yield return new object[] {
PInvokeCore
.WM_COMPACTING, " (WM_COMPACTING)" };
274
yield return new object[] {
PInvokeCore
.WM_COMMNOTIFY, " (WM_COMMNOTIFY)" };
275
yield return new object[] {
PInvokeCore
.WM_WINDOWPOSCHANGING, " (WM_WINDOWPOSCHANGING)" };
276
yield return new object[] {
PInvokeCore
.WM_WINDOWPOSCHANGED, " (WM_WINDOWPOSCHANGED)" };
277
yield return new object[] {
PInvokeCore
.WM_POWER, " (WM_POWER)" };
278
yield return new object[] {
PInvokeCore
.WM_COPYDATA, " (WM_COPYDATA)" };
279
yield return new object[] {
PInvokeCore
.WM_CANCELJOURNAL, " (WM_CANCELJOURNAL)" };
280
yield return new object[] {
PInvokeCore
.WM_NOTIFY, " (WM_NOTIFY)" };
281
yield return new object[] {
PInvokeCore
.WM_INPUTLANGCHANGEREQUEST, " (WM_INPUTLANGCHANGEREQUEST)" };
282
yield return new object[] {
PInvokeCore
.WM_INPUTLANGCHANGE, " (WM_INPUTLANGCHANGE)" };
283
yield return new object[] {
PInvokeCore
.WM_TCARD, " (WM_TCARD)" };
284
yield return new object[] {
PInvokeCore
.WM_HELP, " (WM_HELP)" };
285
yield return new object[] {
PInvokeCore
.WM_USERCHANGED, " (WM_USERCHANGED)" };
286
yield return new object[] {
PInvokeCore
.WM_NOTIFYFORMAT, " (WM_NOTIFYFORMAT)" };
287
yield return new object[] {
PInvokeCore
.WM_CONTEXTMENU, " (WM_CONTEXTMENU)" };
288
yield return new object[] {
PInvokeCore
.WM_STYLECHANGING, " (WM_STYLECHANGING)" };
289
yield return new object[] {
PInvokeCore
.WM_STYLECHANGED, " (WM_STYLECHANGED)" };
290
yield return new object[] {
PInvokeCore
.WM_DISPLAYCHANGE, " (WM_DISPLAYCHANGE)" };
291
yield return new object[] {
PInvokeCore
.WM_GETICON, " (WM_GETICON)" };
292
yield return new object[] {
PInvokeCore
.WM_SETICON, " (WM_SETICON)" };
293
yield return new object[] {
PInvokeCore
.WM_NCCREATE, " (WM_NCCREATE)" };
294
yield return new object[] {
PInvokeCore
.WM_NCDESTROY, " (WM_NCDESTROY)" };
295
yield return new object[] {
PInvokeCore
.WM_NCCALCSIZE, " (WM_NCCALCSIZE)" };
296
yield return new object[] {
PInvokeCore
.WM_NCHITTEST, " (WM_NCHITTEST)" };
297
yield return new object[] {
PInvokeCore
.WM_NCPAINT, " (WM_NCPAINT)" };
298
yield return new object[] {
PInvokeCore
.WM_NCACTIVATE, " (WM_NCACTIVATE)" };
299
yield return new object[] {
PInvokeCore
.WM_GETDLGCODE, " (WM_GETDLGCODE)" };
300
yield return new object[] {
PInvokeCore
.WM_NCMOUSEMOVE, " (WM_NCMOUSEMOVE)" };
301
yield return new object[] {
PInvokeCore
.WM_NCLBUTTONDOWN, " (WM_NCLBUTTONDOWN)" };
302
yield return new object[] {
PInvokeCore
.WM_NCLBUTTONUP, " (WM_NCLBUTTONUP)" };
303
yield return new object[] {
PInvokeCore
.WM_NCLBUTTONDBLCLK, " (WM_NCLBUTTONDBLCLK)" };
304
yield return new object[] {
PInvokeCore
.WM_NCRBUTTONDOWN, " (WM_NCRBUTTONDOWN)" };
305
yield return new object[] {
PInvokeCore
.WM_NCRBUTTONUP, " (WM_NCRBUTTONUP)" };
306
yield return new object[] {
PInvokeCore
.WM_NCRBUTTONDBLCLK, " (WM_NCRBUTTONDBLCLK)" };
307
yield return new object[] {
PInvokeCore
.WM_NCMBUTTONDOWN, " (WM_NCMBUTTONDOWN)" };
308
yield return new object[] {
PInvokeCore
.WM_NCMBUTTONUP, " (WM_NCMBUTTONUP)" };
309
yield return new object[] {
PInvokeCore
.WM_NCMBUTTONDBLCLK, " (WM_NCMBUTTONDBLCLK)" };
310
yield return new object[] {
PInvokeCore
.WM_KEYDOWN, " (WM_KEYDOWN)" };
311
yield return new object[] {
PInvokeCore
.WM_KEYUP, " (WM_KEYUP)" };
312
yield return new object[] {
PInvokeCore
.WM_CHAR, " (WM_CHAR)" };
313
yield return new object[] {
PInvokeCore
.WM_DEADCHAR, " (WM_DEADCHAR)" };
314
yield return new object[] {
PInvokeCore
.WM_SYSKEYDOWN, " (WM_SYSKEYDOWN)" };
315
yield return new object[] {
PInvokeCore
.WM_SYSKEYUP, " (WM_SYSKEYUP)" };
316
yield return new object[] {
PInvokeCore
.WM_SYSCHAR, " (WM_SYSCHAR)" };
317
yield return new object[] {
PInvokeCore
.WM_SYSDEADCHAR, " (WM_SYSDEADCHAR)" };
318
yield return new object[] {
PInvokeCore
.WM_KEYLAST, " (WM_KEYLAST)" };
319
yield return new object[] {
PInvokeCore
.WM_IME_STARTCOMPOSITION, " (WM_IME_STARTCOMPOSITION)" };
320
yield return new object[] {
PInvokeCore
.WM_IME_ENDCOMPOSITION, " (WM_IME_ENDCOMPOSITION)" };
321
yield return new object[] {
PInvokeCore
.WM_IME_COMPOSITION, " (WM_IME_COMPOSITION)" };
322
yield return new object[] {
PInvokeCore
.WM_INITDIALOG, " (WM_INITDIALOG)" };
323
yield return new object[] {
PInvokeCore
.WM_COMMAND, " (WM_COMMAND)" };
324
yield return new object[] {
PInvokeCore
.WM_SYSCOMMAND, " (WM_SYSCOMMAND)" };
325
yield return new object[] {
PInvokeCore
.WM_TIMER, " (WM_TIMER)" };
326
yield return new object[] {
PInvokeCore
.WM_HSCROLL, " (WM_HSCROLL)" };
327
yield return new object[] {
PInvokeCore
.WM_VSCROLL, " (WM_VSCROLL)" };
328
yield return new object[] {
PInvokeCore
.WM_INITMENU, " (WM_INITMENU)" };
329
yield return new object[] {
PInvokeCore
.WM_INITMENUPOPUP, " (WM_INITMENUPOPUP)" };
330
yield return new object[] {
PInvokeCore
.WM_MENUSELECT, " (WM_MENUSELECT)" };
331
yield return new object[] {
PInvokeCore
.WM_MENUCHAR, " (WM_MENUCHAR)" };
332
yield return new object[] {
PInvokeCore
.WM_ENTERIDLE, " (WM_ENTERIDLE)" };
333
yield return new object[] {
PInvokeCore
.WM_CTLCOLORMSGBOX, " (WM_CTLCOLORMSGBOX)" };
334
yield return new object[] {
PInvokeCore
.WM_CTLCOLOREDIT, " (WM_CTLCOLOREDIT)" };
335
yield return new object[] {
PInvokeCore
.WM_CTLCOLORLISTBOX, " (WM_CTLCOLORLISTBOX)" };
336
yield return new object[] {
PInvokeCore
.WM_CTLCOLORBTN, " (WM_CTLCOLORBTN)" };
337
yield return new object[] {
PInvokeCore
.WM_CTLCOLORDLG, " (WM_CTLCOLORDLG)" };
338
yield return new object[] {
PInvokeCore
.WM_CTLCOLORSCROLLBAR, " (WM_CTLCOLORSCROLLBAR)" };
339
yield return new object[] {
PInvokeCore
.WM_CTLCOLORSTATIC, " (WM_CTLCOLORSTATIC)" };
340
yield return new object[] {
PInvokeCore
.WM_MOUSEMOVE, " (WM_MOUSEMOVE)" };
341
yield return new object[] {
PInvokeCore
.WM_LBUTTONDOWN, " (WM_LBUTTONDOWN)" };
342
yield return new object[] {
PInvokeCore
.WM_LBUTTONUP, " (WM_LBUTTONUP)" };
343
yield return new object[] {
PInvokeCore
.WM_LBUTTONDBLCLK, " (WM_LBUTTONDBLCLK)" };
344
yield return new object[] {
PInvokeCore
.WM_RBUTTONDOWN, " (WM_RBUTTONDOWN)" };
345
yield return new object[] {
PInvokeCore
.WM_RBUTTONUP, " (WM_RBUTTONUP)" };
346
yield return new object[] {
PInvokeCore
.WM_RBUTTONDBLCLK, " (WM_RBUTTONDBLCLK)" };
347
yield return new object[] {
PInvokeCore
.WM_MBUTTONDOWN, " (WM_MBUTTONDOWN)" };
348
yield return new object[] {
PInvokeCore
.WM_MBUTTONUP, " (WM_MBUTTONUP)" };
349
yield return new object[] {
PInvokeCore
.WM_MBUTTONDBLCLK, " (WM_MBUTTONDBLCLK)" };
350
yield return new object[] {
PInvokeCore
.WM_MOUSEWHEEL, " (WM_MOUSEWHEEL)" };
351
yield return new object[] {
PInvokeCore
.WM_PARENTNOTIFY, " (WM_PARENTNOTIFY)", " (WM_DESTROY)" };
352
yield return new object[] {
PInvokeCore
.WM_ENTERMENULOOP, " (WM_ENTERMENULOOP)" };
353
yield return new object[] {
PInvokeCore
.WM_EXITMENULOOP, " (WM_EXITMENULOOP)" };
354
yield return new object[] {
PInvokeCore
.WM_NEXTMENU, " (WM_NEXTMENU)" };
355
yield return new object[] {
PInvokeCore
.WM_SIZING, " (WM_SIZING)" };
356
yield return new object[] {
PInvokeCore
.WM_CAPTURECHANGED, " (WM_CAPTURECHANGED)" };
357
yield return new object[] {
PInvokeCore
.WM_MOVING, " (WM_MOVING)" };
358
yield return new object[] {
PInvokeCore
.WM_POWERBROADCAST, " (WM_POWERBROADCAST)" };
359
yield return new object[] {
PInvokeCore
.WM_DEVICECHANGE, " (WM_DEVICECHANGE)" };
360
yield return new object[] {
PInvokeCore
.WM_IME_SETCONTEXT, " (WM_IME_SETCONTEXT)" };
361
yield return new object[] {
PInvokeCore
.WM_IME_NOTIFY, " (WM_IME_NOTIFY)" };
362
yield return new object[] {
PInvokeCore
.WM_IME_CONTROL, " (WM_IME_CONTROL)" };
363
yield return new object[] {
PInvokeCore
.WM_IME_COMPOSITIONFULL, " (WM_IME_COMPOSITIONFULL)" };
364
yield return new object[] {
PInvokeCore
.WM_IME_SELECT, " (WM_IME_SELECT)" };
365
yield return new object[] {
PInvokeCore
.WM_IME_CHAR, " (WM_IME_CHAR)" };
366
yield return new object[] {
PInvokeCore
.WM_IME_KEYDOWN, " (WM_IME_KEYDOWN)" };
367
yield return new object[] {
PInvokeCore
.WM_IME_KEYUP, " (WM_IME_KEYUP)" };
368
yield return new object[] {
PInvokeCore
.WM_MDICREATE, " (WM_MDICREATE)" };
369
yield return new object[] {
PInvokeCore
.WM_MDIDESTROY, " (WM_MDIDESTROY)" };
370
yield return new object[] {
PInvokeCore
.WM_MDIACTIVATE, " (WM_MDIACTIVATE)" };
371
yield return new object[] {
PInvokeCore
.WM_MDIRESTORE, " (WM_MDIRESTORE)" };
372
yield return new object[] {
PInvokeCore
.WM_MDINEXT, " (WM_MDINEXT)" };
373
yield return new object[] {
PInvokeCore
.WM_MDIMAXIMIZE, " (WM_MDIMAXIMIZE)" };
374
yield return new object[] {
PInvokeCore
.WM_MDITILE, " (WM_MDITILE)" };
375
yield return new object[] {
PInvokeCore
.WM_MDICASCADE, " (WM_MDICASCADE)" };
376
yield return new object[] {
PInvokeCore
.WM_MDIICONARRANGE, " (WM_MDIICONARRANGE)" };
377
yield return new object[] {
PInvokeCore
.WM_MDIGETACTIVE, " (WM_MDIGETACTIVE)" };
378
yield return new object[] {
PInvokeCore
.WM_MDISETMENU, " (WM_MDISETMENU)" };
379
yield return new object[] {
PInvokeCore
.WM_ENTERSIZEMOVE, " (WM_ENTERSIZEMOVE)" };
380
yield return new object[] {
PInvokeCore
.WM_EXITSIZEMOVE, " (WM_EXITSIZEMOVE)" };
381
yield return new object[] {
PInvokeCore
.WM_DROPFILES, " (WM_DROPFILES)" };
382
yield return new object[] {
PInvokeCore
.WM_MDIREFRESHMENU, " (WM_MDIREFRESHMENU)" };
383
yield return new object[] {
PInvokeCore
.WM_MOUSEHOVER, " (WM_MOUSEHOVER)" };
384
yield return new object[] {
PInvokeCore
.WM_MOUSELEAVE, " (WM_MOUSELEAVE)" };
385
yield return new object[] {
PInvokeCore
.WM_CUT, " (WM_CUT)" };
386
yield return new object[] {
PInvokeCore
.WM_COPY, " (WM_COPY)" };
387
yield return new object[] {
PInvokeCore
.WM_PASTE, " (WM_PASTE)" };
388
yield return new object[] {
PInvokeCore
.WM_CLEAR, " (WM_CLEAR)" };
389
yield return new object[] {
PInvokeCore
.WM_UNDO, " (WM_UNDO)" };
390
yield return new object[] {
PInvokeCore
.WM_RENDERFORMAT, " (WM_RENDERFORMAT)" };
391
yield return new object[] {
PInvokeCore
.WM_RENDERALLFORMATS, " (WM_RENDERALLFORMATS)" };
392
yield return new object[] {
PInvokeCore
.WM_DESTROYCLIPBOARD, " (WM_DESTROYCLIPBOARD)" };
393
yield return new object[] {
PInvokeCore
.WM_DRAWCLIPBOARD, " (WM_DRAWCLIPBOARD)" };
394
yield return new object[] {
PInvokeCore
.WM_PAINTCLIPBOARD, " (WM_PAINTCLIPBOARD)" };
395
yield return new object[] {
PInvokeCore
.WM_VSCROLLCLIPBOARD, " (WM_VSCROLLCLIPBOARD)" };
396
yield return new object[] {
PInvokeCore
.WM_SIZECLIPBOARD, " (WM_SIZECLIPBOARD)" };
397
yield return new object[] {
PInvokeCore
.WM_ASKCBFORMATNAME, " (WM_ASKCBFORMATNAME)" };
398
yield return new object[] {
PInvokeCore
.WM_CHANGECBCHAIN, " (WM_CHANGECBCHAIN)" };
399
yield return new object[] {
PInvokeCore
.WM_HSCROLLCLIPBOARD, " (WM_HSCROLLCLIPBOARD)" };
400
yield return new object[] {
PInvokeCore
.WM_QUERYNEWPALETTE, " (WM_QUERYNEWPALETTE)" };
401
yield return new object[] {
PInvokeCore
.WM_PALETTEISCHANGING, " (WM_PALETTEISCHANGING)" };
402
yield return new object[] {
PInvokeCore
.WM_PALETTECHANGED, " (WM_PALETTECHANGED)" };
403
yield return new object[] {
PInvokeCore
.WM_HOTKEY, " (WM_HOTKEY)" };
404
yield return new object[] {
PInvokeCore
.WM_PRINT, " (WM_PRINT)" };
405
yield return new object[] {
PInvokeCore
.WM_PRINTCLIENT, " (WM_PRINTCLIENT)" };
406
yield return new object[] {
PInvokeCore
.WM_HANDHELDFIRST, " (WM_HANDHELDFIRST)" };
407
yield return new object[] {
PInvokeCore
.WM_HANDHELDLAST, " (WM_HANDHELDLAST)" };
408
yield return new object[] {
PInvokeCore
.WM_AFXFIRST, " (WM_AFXFIRST)" };
409
yield return new object[] {
PInvokeCore
.WM_AFXLAST, " (WM_AFXLAST)" };
410
yield return new object[] {
PInvokeCore
.WM_PENWINFIRST, " (WM_PENWINFIRST)" };
411
yield return new object[] {
PInvokeCore
.WM_PENWINLAST, " (WM_PENWINLAST)" };
412
yield return new object[] {
PInvokeCore
.WM_APP, " (WM_APP)" };
413
yield return new object[] {
PInvokeCore
.WM_USER, " (WM_USER)" };
414
yield return new object[] {
PInvokeCore
.WM_CTLCOLOR, " (WM_CTLCOLOR)" };
417
yield return new object[] {
PInvokeCore
.EM_GETLIMITTEXT, " (EM_GETLIMITTEXT)" };
418
yield return new object[] {
PInvokeCore
.EM_POSFROMCHAR, " (EM_POSFROMCHAR)" };
419
yield return new object[] {
PInvokeCore
.EM_CHARFROMPOS, " (EM_CHARFROMPOS)" };
420
yield return new object[] {
PInvokeCore
.EM_SCROLLCARET, " (EM_SCROLLCARET)" };
421
yield return new object[] {
PInvokeCore
.EM_CANPASTE, " (EM_CANPASTE)" };
422
yield return new object[] {
PInvokeCore
.EM_DISPLAYBAND, " (EM_DISPLAYBAND)" };
423
yield return new object[] {
PInvokeCore
.EM_EXGETSEL, " (EM_EXGETSEL)" };
424
yield return new object[] {
PInvokeCore
.EM_EXLIMITTEXT, " (EM_EXLIMITTEXT)" };
425
yield return new object[] {
PInvokeCore
.EM_EXLINEFROMCHAR, " (EM_EXLINEFROMCHAR)" };
426
yield return new object[] {
PInvokeCore
.EM_EXSETSEL, " (EM_EXSETSEL)" };
427
yield return new object[] {
PInvokeCore
.EM_FINDTEXT, " (EM_FINDTEXT)" };
428
yield return new object[] {
PInvokeCore
.EM_FORMATRANGE, " (EM_FORMATRANGE)" };
429
yield return new object[] {
PInvokeCore
.EM_GETCHARFORMAT, " (EM_GETCHARFORMAT)" };
430
yield return new object[] {
PInvokeCore
.EM_GETEVENTMASK, " (EM_GETEVENTMASK)" };
431
yield return new object[] {
PInvokeCore
.EM_GETOLEINTERFACE, " (EM_GETOLEINTERFACE)" };
432
yield return new object[] {
PInvokeCore
.EM_GETPARAFORMAT, " (EM_GETPARAFORMAT)" };
433
yield return new object[] {
PInvokeCore
.EM_GETSELTEXT, " (EM_GETSELTEXT)" };
434
yield return new object[] {
PInvokeCore
.EM_HIDESELECTION, " (EM_HIDESELECTION)" };
435
yield return new object[] {
PInvokeCore
.EM_PASTESPECIAL, " (EM_PASTESPECIAL)" };
436
yield return new object[] {
PInvokeCore
.EM_REQUESTRESIZE, " (EM_REQUESTRESIZE)" };
437
yield return new object[] {
PInvokeCore
.EM_SELECTIONTYPE, " (EM_SELECTIONTYPE)" };
438
yield return new object[] {
PInvokeCore
.EM_SETBKGNDCOLOR, " (EM_SETBKGNDCOLOR)" };
439
yield return new object[] {
PInvokeCore
.EM_SETCHARFORMAT, " (EM_SETCHARFORMAT)" };
440
yield return new object[] {
PInvokeCore
.EM_SETEVENTMASK, " (EM_SETEVENTMASK)" };
441
yield return new object[] {
PInvokeCore
.EM_SETOLECALLBACK, " (EM_SETOLECALLBACK)" };
442
yield return new object[] {
PInvokeCore
.EM_SETPARAFORMAT, " (EM_SETPARAFORMAT)" };
443
yield return new object[] {
PInvokeCore
.EM_SETTARGETDEVICE, " (EM_SETTARGETDEVICE)" };
444
yield return new object[] {
PInvokeCore
.EM_STREAMIN, " (EM_STREAMIN)" };
445
yield return new object[] {
PInvokeCore
.EM_STREAMOUT, " (EM_STREAMOUT)" };
446
yield return new object[] {
PInvokeCore
.EM_GETTEXTRANGE, " (EM_GETTEXTRANGE)" };
447
yield return new object[] {
PInvokeCore
.EM_FINDWORDBREAK, " (EM_FINDWORDBREAK)" };
448
yield return new object[] {
PInvokeCore
.EM_SETOPTIONS, " (EM_SETOPTIONS)" };
449
yield return new object[] {
PInvokeCore
.EM_GETOPTIONS, " (EM_GETOPTIONS)" };
450
yield return new object[] {
PInvokeCore
.EM_FINDTEXTEX, " (EM_FINDTEXTEX)" };
451
yield return new object[] {
PInvokeCore
.EM_GETWORDBREAKPROCEX, " (EM_GETWORDBREAKPROCEX)" };
452
yield return new object[] {
PInvokeCore
.EM_SETWORDBREAKPROCEX, " (EM_SETWORDBREAKPROCEX)" };
455
yield return new object[] {
PInvokeCore
.EM_SETUNDOLIMIT, " (EM_SETUNDOLIMIT)" };
456
yield return new object[] {
PInvokeCore
.EM_REDO, " (EM_REDO)" };
457
yield return new object[] {
PInvokeCore
.EM_CANREDO, " (EM_CANREDO)" };
458
yield return new object[] {
PInvokeCore
.EM_GETUNDONAME, " (EM_GETUNDONAME)" };
459
yield return new object[] {
PInvokeCore
.EM_GETREDONAME, " (EM_GETREDONAME)" };
460
yield return new object[] {
PInvokeCore
.EM_STOPGROUPTYPING, " (EM_STOPGROUPTYPING)" };
461
yield return new object[] {
PInvokeCore
.EM_SETTEXTMODE, " (EM_SETTEXTMODE)" };
462
yield return new object[] {
PInvokeCore
.EM_GETTEXTMODE, " (EM_GETTEXTMODE)" };
463
yield return new object[] {
PInvokeCore
.EM_AUTOURLDETECT, " (EM_AUTOURLDETECT)" };
464
yield return new object[] {
PInvokeCore
.EM_GETAUTOURLDETECT, " (EM_GETAUTOURLDETECT)" };
465
yield return new object[] {
PInvokeCore
.EM_SETPALETTE, " (EM_SETPALETTE)" };
466
yield return new object[] {
PInvokeCore
.EM_GETTEXTEX, " (EM_GETTEXTEX)" };
467
yield return new object[] {
PInvokeCore
.EM_GETTEXTLENGTHEX, " (EM_GETTEXTLENGTHEX)" };
470
yield return new object[] {
PInvokeCore
.EM_SETPUNCTUATION, " (EM_SETPUNCTUATION)" };
471
yield return new object[] {
PInvokeCore
.EM_GETPUNCTUATION, " (EM_GETPUNCTUATION)" };
472
yield return new object[] {
PInvokeCore
.EM_SETWORDWRAPMODE, " (EM_SETWORDWRAPMODE)" };
473
yield return new object[] {
PInvokeCore
.EM_GETWORDWRAPMODE, " (EM_GETWORDWRAPMODE)" };
474
yield return new object[] {
PInvokeCore
.EM_SETIMECOLOR, " (EM_SETIMECOLOR)" };
475
yield return new object[] {
PInvokeCore
.EM_GETIMECOLOR, " (EM_GETIMECOLOR)" };
476
yield return new object[] {
PInvokeCore
.EM_SETIMEOPTIONS, " (EM_SETIMEOPTIONS)" };
477
yield return new object[] {
PInvokeCore
.EM_GETIMEOPTIONS, " (EM_GETIMEOPTIONS)" };
478
yield return new object[] {
PInvokeCore
.EM_CONVPOSITION, " (EM_CONVPOSITION)" };
479
yield return new object[] {
PInvokeCore
.EM_SETLANGOPTIONS, " (EM_SETLANGOPTIONS)" };
480
yield return new object[] {
PInvokeCore
.EM_GETLANGOPTIONS, " (EM_GETLANGOPTIONS)" };
481
yield return new object[] {
PInvokeCore
.EM_GETIMECOMPMODE, " (EM_GETIMECOMPMODE)" };
482
yield return new object[] {
PInvokeCore
.EM_FINDTEXTW, " (EM_FINDTEXTW)" };
483
yield return new object[] {
PInvokeCore
.EM_FINDTEXTEXW, " (EM_FINDTEXTEXW)" };
486
yield return new object[] {
PInvokeCore
.EM_RECONVERSION, " (EM_RECONVERSION)" };
487
yield return new object[] {
PInvokeCore
.EM_SETIMEMODEBIAS, " (EM_SETIMEMODEBIAS)" };
488
yield return new object[] {
PInvokeCore
.EM_GETIMEMODEBIAS, " (EM_GETIMEMODEBIAS)" };
491
yield return new object[] {
PInvokeCore
.EM_SETBIDIOPTIONS, " (EM_SETBIDIOPTIONS)" };
492
yield return new object[] {
PInvokeCore
.EM_GETBIDIOPTIONS, " (EM_GETBIDIOPTIONS)" };
493
yield return new object[] {
PInvokeCore
.EM_SETTYPOGRAPHYOPTIONS, " (EM_SETTYPOGRAPHYOPTIONS)" };
494
yield return new object[] {
PInvokeCore
.EM_GETTYPOGRAPHYOPTIONS, " (EM_GETTYPOGRAPHYOPTIONS)" };
497
yield return new object[] {
PInvokeCore
.EM_SETEDITSTYLE, " (EM_SETEDITSTYLE)" };
498
yield return new object[] {
PInvokeCore
.EM_GETEDITSTYLE, " (EM_GETEDITSTYLE)" };
System\Windows\Forms\MonthCalendarTests.cs (13)
1031
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETSELRANGE, 0, ref range[0]));
1058
Assert.Equal(10, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETMAXSELCOUNT));
1070
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETTODAY, 0, ref date));
1089
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCOLOR, (WPARAM)(int)PInvoke.MCSC_TEXT));
1100
Assert.Equal(0x563412, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCOLOR, (WPARAM)(int)PInvoke.MCSC_MONTHBK));
1111
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCOLOR, (WPARAM)(int)PInvoke.MCSC_TITLEBK));
1122
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCOLOR, (WPARAM)(int)PInvoke.MCSC_TITLETEXT));
1133
Assert.Equal(0x785634, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCOLOR, (WPARAM)(int)PInvoke.MCSC_TRAILINGTEXT));
1150
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETFIRSTDAYOFWEEK));
1161
Assert.Equal(0x10001, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETFIRSTDAYOFWEEK));
1174
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETRANGE, 0, ref range[0]));
1201
Assert.Equal(10, (int)
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETMONTHDELTA));
4371
PInvokeCore
.SendMessage(monthCalendar, PInvoke.MCM_SETCURRENTVIEW, 0, view);
System\Windows\Forms\NativeWindowTests.cs (6)
268
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
319
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
386
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
447
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
498
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
519
[InlineData((int)
PInvokeCore
.WM_NCDESTROY)]
System\Windows\Forms\RichTextBoxTests.cs (93)
316
Assert.Equal(HRESULT.DRAGDROP_E_ALREADYREGISTERED,
PInvokeCore
.RegisterDragDrop(control, dropTarget));
567
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETOPTIONS, (WPARAM)(int)PInvoke.ECOOP_OR, (LPARAM)(int)PInvoke.ECO_AUTOWORDSELECTION);
643
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETOPTIONS));
1000
if (m.Msg == (int)
PInvokeCore
.EM_CANREDO)
1069
if (m.Msg == (int)
PInvokeCore
.EM_CANUNDO)
1114
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_AUTOURLDETECT, 0);
1191
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETAUTOURLDETECT));
1268
Assert.Equal(HRESULT.DRAGDROP_E_ALREADYREGISTERED,
PInvokeCore
.RegisterDragDrop(control, dropTarget));
1609
result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format);
1626
result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format1);
1752
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
1767
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
1776
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
1846
if (MakeCustom && m.Msg == (int)
PInvokeCore
.EM_GETLANGOPTIONS)
1910
Assert.Equal(value, (RichTextBoxLanguageOptions)(int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETLANGOPTIONS));
1932
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_LIMITTEXT, 0, 1);
1940
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_EXLIMITTEXT, 0, 2);
2049
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETLIMITTEXT));
2371
if (m.Msg == (int)
PInvokeCore
.EM_CANREDO)
2376
else if (m.Msg == (int)
PInvokeCore
.EM_GETREDONAME)
3783
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
3978
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4240
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4434
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4623
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4938
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5158
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5349
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5551
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETSEL, (WPARAM)(&selectionStart), (LPARAM)(&selectionEnd));
5747
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5933
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
6141
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETSEL, (WPARAM)(&selectionStart), (LPARAM)(&selectionEnd));
6380
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
6388
Assert.NotEqual(0, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
6534
if (m.Msg == (int)
PInvokeCore
.EM_SELECTIONTYPE)
6581
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETOPTIONS, (WPARAM)(int)PInvoke.ECOOP_OR, (LPARAM)(nint)PInvoke.ECO_SELECTIONBAR);
6657
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETOPTIONS));
6761
if (m.Msg == (int)
PInvokeCore
.EM_GETTEXTLENGTHEX)
7676
if (m.Msg == (int)
PInvokeCore
.EM_CANUNDO)
7681
else if (m.Msg == (int)
PInvokeCore
.EM_GETUNDONAME)
7726
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETZOOM, 2, 10);
7760
if (m.Msg == (int)
PInvokeCore
.EM_GETZOOM)
7900
if (m.Msg == (int)
PInvokeCore
.EM_CANPASTE)
8919
if (m.Msg == (int)
PInvokeCore
.EM_LINEFROMCHAR)
8959
if (m.Msg == (int)
PInvokeCore
.EM_EXLINEFROMCHAR)
9785
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
9812
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
9840
Msg = (int)
PInvokeCore
.WM_IME_NOTIFY,
9874
Msg = (int)
PInvokeCore
.WM_IME_NOTIFY,
9908
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
10229
Marshal.WriteInt32(ptr, IntPtr.Size * 2 + IntPtr.Size, (int)
PInvokeCore
.EM_SETCHARFORMAT);
10465
Marshal.WriteInt32(ptr, IntPtr.Size * 2 + IntPtr.Size, (int)
PInvokeCore
.EM_SETCHARFORMAT);
10501
Msg = (int)
PInvokeCore
.WM_SETFONT,
10510
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
10532
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN), LPARAM.MAKELPARAM(1, 2));
10538
Msg = (int)
PInvokeCore
.WM_SETFONT,
10544
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
10882
if (MakeCustom && m.Msg == (int)
PInvokeCore
.EM_GETPARAFORMAT)
10903
if (MakeCustom && m.Msg == (int)
PInvokeCore
.EM_GETCHARFORMAT)
11020
Span<char> buffer = stackalloc char[
PInvokeCore
.MaxClassName];
System\Windows\Forms\ScrollBarTests.cs (6)
2699
Msg = (int)
PInvokeCore
.WM_ERASEBKGND,
2710
foreach (MessageId msg in new MessageId[] { MessageId.WM_REFLECT |
PInvokeCore
.WM_HSCROLL, MessageId.WM_REFLECT |
PInvokeCore
.WM_VSCROLL })
2865
Msg = (int)
PInvokeCore
.WM_SIZE,
2887
Msg = (int)
PInvokeCore
.WM_SIZE,
2919
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\TabControl.ControlCollectionTests.cs (14)
770
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
780
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
788
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
796
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
838
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
848
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
856
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
864
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1482
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1492
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1500
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1540
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1550
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1558
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (31)
776
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
786
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
794
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
802
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
846
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
856
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
864
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
872
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1540
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
2802
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
2812
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
2820
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
2828
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
2870
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
2880
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
2888
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
2896
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3557
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3567
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3575
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3583
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3629
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3639
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3647
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3655
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
4602
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
4612
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
4620
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
4662
Assert.Equal(2, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
4672
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
4680
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
System\Windows\Forms\TabControlTests.cs (16)
1016
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1028
Assert.Equal(imageList.Handle, (nint)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1036
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMCOUNT));
1058
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMCOUNT));
1068
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 0, ref item));
1076
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 1, ref item));
1084
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 2, ref item));
1303
Assert.Equal(imageList.Handle, (nint)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1307
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1424
Assert.Equal(imageList1.Handle, (nint)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1435
Assert.Equal(imageList2.Handle, (nint)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
4933
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMCOUNT));
4943
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 0, ref item));
4951
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 1, ref item));
4959
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMW, 2, ref item));
5190
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TCM_GETITEMCOUNT));
System\Windows\Forms\TabPageTests.cs (32)
1387
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1397
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1405
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1413
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1454
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1464
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1472
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1480
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1762
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1772
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1780
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1788
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1826
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
1836
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1844
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1852
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3018
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3028
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3036
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3044
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3085
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3095
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3103
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3111
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3391
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3401
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3409
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3417
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3455
Assert.Equal(3, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMCOUNT));
3465
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3473
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3481
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(owner, PInvoke.TCM_GETITEMW, 2, ref item));
System\Windows\Forms\ToolStripDropDownTests.cs (1)
4870
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\ToolStripTests.cs (5)
463
Assert.Equal(HRESULT.S_OK,
PInvokeCore
.RegisterDragDrop(control, dropTarget));
492
PInvokeCore
.RevokeDragDrop((HWND)control.Handle);
7154
Msg = (int)
PInvokeCore
.WM_MOUSEACTIVATE,
7181
Msg = (int)
PInvokeCore
.WM_MOUSEACTIVATE,
7216
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
System\Windows\Forms\ToolTipTests.cs (6)
856
Assert.True(
PInvokeCore
.PostMessage(toolTip,
PInvokeCore
.WM_MOUSEMOVE, lParam: PARAM.FromPoint(tabPage.GetToolNativeScreenRectangle().Location)));
858
Assert.True(
PInvokeCore
.PeekMessage(&msg, toolTip,
PInvokeCore
.WM_MOUSEMOVE,
PInvokeCore
.WM_MOUSEMOVE, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE));
895
Assert.Equal(tabControl.TabCount, (int)
PInvokeCore
.SendMessage(toolTip, PInvoke.TTM_GETTOOLCOUNT));
System\Windows\Forms\TreeNodeTests.cs (21)
675
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
943
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
1216
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
1243
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
1274
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
1489
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
1519
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
1551
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
3198
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
3227
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
3258
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
3473
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
3503
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
3535
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
3863
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
3893
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
3925
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
4226
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
4264
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
4304
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref column));
4462
Assert.Equal(1, (int)
PInvokeCore
.SendMessage(control, PInvoke.TVM_GETITEMW, 0, ref item));
System\Windows\Forms\TreeViewTests.cs (1)
1681
Assert.Equal(version, (int)
PInvokeCore
.SendMessage(control, PInvoke.CCM_GETVERSION));
System\Windows\Forms\UpDownBaseTests.cs (6)
2865
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
2891
Msg = (int)
PInvokeCore
.WM_KILLFOCUS,
2918
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
2949
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
2974
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
3004
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
System\Windows\Forms\UserControlTests.cs (3)
1707
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
1737
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
1768
Msg = (int)
PInvokeCore
.WM_SETFOCUS,
System\Windows\Forms\WebBrowserTests.cs (5)
4476
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
4513
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
4555
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
4585
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
4635
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
TextBoxBaseTests.cs (138)
736
if (m.Msg == (int)
PInvokeCore
.EM_CANUNDO)
1270
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
1288
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
1304
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMODIFY));
1674
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_LIMITTEXT, 0, 1);
1783
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETLIMITTEXT));
1821
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETMODIFY, (WPARAM)(BOOL)true);
1899
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMODIFY));
2323
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETREADONLY, (WPARAM)(BOOL)true);
2406
WINDOW_STYLE style = (WINDOW_STYLE)
PInvokeCore
.GetWindowLong(control, WINDOW_LONG_PTR_INDEX.GWL_STYLE);
2916
LRESULT result =
PInvokeCore
.SendMessage(
2918
PInvokeCore
.EM_GETSEL,
3093
LRESULT result =
PInvokeCore
.SendMessage(
3095
PInvokeCore
.EM_GETSEL,
4159
LRESULT result =
PInvokeCore
.SendMessage(
4161
PInvokeCore
.EM_GETSEL,
4511
if (m.Msg == (int)
PInvokeCore
.EM_CHARFROMPOS)
4706
if (m.Msg == (int)
PInvokeCore
.EM_LINEINDEX)
4823
if (m.Msg == (int)
PInvokeCore
.EM_LINEFROMCHAR)
4980
if (m.Msg == (int)
PInvokeCore
.EM_POSFROMCHAR)
6194
if (m.Msg == (int)
PInvokeCore
.EM_GETOLEINTERFACE)
6301
LRESULT result =
PInvokeCore
.SendMessage(
6303
PInvokeCore
.EM_GETSEL,
6437
LRESULT result =
PInvokeCore
.SendMessage(
6439
PInvokeCore
.EM_GETSEL,
6962
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
7010
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
7041
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
7097
Msg = (int)
PInvokeCore
.WM_CONTEXTMENU,
7129
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
7156
Msg = (int)
PInvokeCore
.WM_GETDLGCODE,
7169
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 };
7170
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 };
7171
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 };
7172
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 };
7173
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 };
7174
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 };
7176
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 0, 0 };
7177
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 1, 2 };
7178
yield return new object[] { true, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, -1, -2 };
7179
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 0, 0 };
7180
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 1, 2 };
7181
yield return new object[] { false, (int)
PInvokeCore
.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, -1, -2 };
7183
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 };
7184
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 };
7185
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 };
7186
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 };
7187
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 };
7188
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 };
7190
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 0, 0 };
7191
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 1, 2 };
7192
yield return new object[] { true, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, -1, -2 };
7193
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 0, 0 };
7194
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 1, 2 };
7195
yield return new object[] { false, (int)
PInvokeCore
.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, -1, -2 };
7197
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 };
7198
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 };
7199
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 };
7200
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 };
7201
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 };
7202
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 };
7204
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 0, 0 };
7205
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 1, 2 };
7206
yield return new object[] { true, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, -1, -2 };
7207
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 0, 0 };
7208
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 1, 2 };
7209
yield return new object[] { false, (int)
PInvokeCore
.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, -1, -2 };
7211
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 };
7212
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 };
7213
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 };
7214
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 };
7215
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 };
7216
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 };
7218
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 };
7219
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 1, 2 };
7220
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, -1, -2 };
7221
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 };
7222
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 };
7223
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 };
7225
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 };
7226
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 1, 2 };
7227
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, -1, -2 };
7228
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 };
7229
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 };
7230
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 };
7232
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 0, 0 };
7233
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 1, 2 };
7234
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, -1, -2 };
7235
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 0, 0 };
7236
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 1, 2 };
7237
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, -1, -2 };
7239
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 0, 0 };
7240
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 1, 2 };
7241
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, -1, -2 };
7242
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 0, 0 };
7243
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 1, 2 };
7244
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, -1, -2 };
7246
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 0, 0 };
7247
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 1, 2 };
7248
yield return new object[] { true, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, -1, -2 };
7249
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 0, 0 };
7250
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 1, 2 };
7251
yield return new object[] { false, (int)
PInvokeCore
.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, -1, -2 };
7326
[InlineData((int)
PInvokeCore
.WM_LBUTTONDOWN)]
7327
[InlineData((int)
PInvokeCore
.WM_LBUTTONDBLCLK)]
7328
[InlineData((int)
PInvokeCore
.WM_MBUTTONDOWN)]
7329
[InlineData((int)
PInvokeCore
.WM_MBUTTONDBLCLK)]
7330
[InlineData((int)
PInvokeCore
.WM_RBUTTONDOWN)]
7331
[InlineData((int)
PInvokeCore
.WM_RBUTTONDBLCLK)]
7332
[InlineData((int)
PInvokeCore
.WM_XBUTTONDOWN)]
7333
[InlineData((int)
PInvokeCore
.WM_XBUTTONDBLCLK)]
7446
[InlineData((int)
PInvokeCore
.WM_LBUTTONDOWN)]
7447
[InlineData((int)
PInvokeCore
.WM_LBUTTONDBLCLK)]
7448
[InlineData((int)
PInvokeCore
.WM_MBUTTONDOWN)]
7449
[InlineData((int)
PInvokeCore
.WM_MBUTTONDBLCLK)]
7450
[InlineData((int)
PInvokeCore
.WM_RBUTTONDOWN)]
7451
[InlineData((int)
PInvokeCore
.WM_RBUTTONDBLCLK)]
7452
[InlineData((int)
PInvokeCore
.WM_XBUTTONDOWN)]
7453
[InlineData((int)
PInvokeCore
.WM_XBUTTONDBLCLK)]
7507
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
7550
Msg = (int)(MessageId.WM_REFLECT |
PInvokeCore
.WM_COMMAND),
7586
Msg = (int)(MessageId.WM_REFLECT |
PInvokeCore
.WM_COMMAND),
7615
Msg = (int)
PInvokeCore
.WM_SETFONT,
7626
nint result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
7649
PInvokeCore
.SendMessage(
7651
PInvokeCore
.EM_SETMARGINS,
7659
Msg = (int)
PInvokeCore
.WM_SETFONT,
7666
IntPtr result =
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETMARGINS);
TextBoxTests.cs (12)
422
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
424
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
426
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
441
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
443
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
445
PInvokeCore
.SendMessage(tb,
PInvokeCore
.WM_PAINT, (WPARAM)(BOOL)false);
TrackBarTests.cs (58)
782
Assert.Equal(11, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
793
Assert.Equal(11, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
812
Assert.Equal(expected, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
824
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
835
Assert.Equal(11, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPAGESIZE));
846
Assert.Equal(11, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETLINESIZE));
1015
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPAGESIZE));
1024
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPAGESIZE));
1089
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1090
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1091
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1104
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1105
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1106
Assert.Equal(0, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1152
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1153
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1154
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1228
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1229
Assert.Equal(10, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1230
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1242
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1243
Assert.Equal(10, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1244
Assert.Equal(5, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1290
Assert.Equal(12, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
1291
Assert.Equal(12, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
1292
Assert.Equal(12, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
1749
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETLINESIZE));
1758
Assert.Equal(value, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETLINESIZE));
2134
Assert.Equal(expectedPos, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
2147
Assert.Equal(expectedPos, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
3101
Assert.Equal(expectedMinimum, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMIN));
3102
Assert.Equal(expectedMaximum, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETRANGEMAX));
3103
Assert.Equal(expectedValue, (int)
PInvokeCore
.SendMessage(control, PInvoke.TBM_GETPOS));
3138
Msg = (int)
PInvokeCore
.WM_MOUSEHOVER,
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 (18)
ControlExtensions.cs (3)
13
/// Creates a metafile for the specified <see cref="Control"/> by calling <see cref="
PInvokeCore
.WM_PRINT"/>.
20
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_PRINT, (WPARAM)emf.HDC, (LPARAM)(uint)prf);
DialogHostForm.cs (5)
21
if (m.MsgInternal ==
PInvokeCore
.WM_ENTERIDLE && m.WParamInternal == (uint)MSGF.DIALOGBOX)
31
PInvokeCore
.PostMessage(dialogHandle,
PInvokeCore
.WM_CLOSE);
36
PInvokeCore
.SendMessage(handle,
PInvokeCore
.WM_COMMAND, (WPARAM)(nint)MESSAGEBOX_RESULT.IDOK);
KeyboardSimulator.cs (6)
15
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_KEYDOWN, (WPARAM)keyCode, lParam);
21
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_KEYDOWN, (WPARAM)keyCode, lParam);
22
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_KEYUP, (WPARAM)keyCode, lParam);
PropertyGridInternal\SubPropertyGrid.cs (1)
66
PInvokeCore
.PostMessage(this, WM_DELAYEDEXECUTION, lParam: GCHandle.ToIntPtr(callbackHandle));
SystemEventsHelper.cs (3)
37
msg =
PInvokeCore
.WM_SYSCOLORCHANGE;
42
msg =
PInvokeCore
.WM_SETTINGCHANGE;
87
PInvokeCore
.SendMessage(window, msg | MessageId.WM_REFLECT, wParam);
System.Windows.Forms.UI.IntegrationTests (32)
Dpi\DpiMessageHelper.cs (8)
15
PInvokeCore
.WM_DPICHANGED => SendWmDpiChangedMessage(message),
16
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT =>
PInvokeCore
.SendMessage(control, message, wParam),
17
PInvokeCore
.WM_DPICHANGED_AFTERPARENT =>
PInvokeCore
.SendMessage(control, message),
28
PInvokeCore
.SendMessage(control,
PInvokeCore
.WM_GETDPISCALEDSIZE, wParam, ref suggestedRect);
29
return
PInvokeCore
.SendMessage(control, message, wParam, ref suggestedRect);
Dpi\FormDpiTests.cs (8)
35
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
73
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
110
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
140
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
144
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, ScaleHelper.OneHundredPercentLogicalDpi);
147
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
176
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
208
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
Dpi\SplitContainerTests.cs (2)
61
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT, splitContainer, newDpi);
62
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED, form, newDpi);
Dpi\ToolStripItemTests.Dpi.cs (1)
48
DpiMessageHelper.TriggerDpiMessage(
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT, toolStrip, newDpi);
DragDropTests.cs (1)
602
HRESULT hr =
PInvokeCore
.CoCreateInstance(
ImageListTests.cs (1)
73
uint result =
PInvokeCore
.GetGuiResources(
Infra\ControlTestBase.cs (3)
42
Assert.True(
PInvokeCore
.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETCLIENTAREAANIMATION, ref _clientAreaAnimation));
43
Assert.True(
PInvokeCore
.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_SETCLIENTAREAANIMATION, ref disabled, SPIF_SENDCHANGE));
101
Assert.True(
PInvokeCore
.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_SETCLIENTAREAANIMATION, ref _clientAreaAnimation));
Infra\SendInput.cs (2)
88
string windowTitle =
PInvokeCore
.GetWindowText(window);
89
if (
PInvokeCore
.GetWindowThreadProcessId(window, out uint processId) == 0 || processId != Environment.ProcessId)
MonthCalendarTests.cs (2)
75
PInvokeCore
.SendMessage(calendar, MessageId.WM_REFLECT_NOTIFY, 0, ref lParam);
168
Assert.NotEqual(default,
PInvokeCore
.SendMessage(control, PInvoke.MCM_GETCALENDARGRIDINFO, default, ref result));
RichTextBoxTests.cs (4)
206
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format);
215
if (
PInvokeCore
.SendMessage(control,
PInvokeCore
.EM_GETOLEINTERFACE, 0, (void**)richEdit) != 0)
WinFormsControlsTest (7)
RichTextBoxes.cs (2)
50
PInvokeCore
.SendMessage(
52
PInvokeCore
.EM_SETCHARFORMAT,
ScalingBeforeChanges.cs (5)
39
x =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
40
y =
PInvokeCore
.GetDeviceCaps(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
79
case
PInvokeCore
.WM_DPICHANGED:
122
case
PInvokeCore
.WM_DPICHANGED_BEFOREPARENT:
128
case
PInvokeCore
.WM_DPICHANGED_AFTERPARENT: