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