474 references to SendMessage
System.Private.Windows.Core (3)
Windows\Win32\PInvokeCore.SendMessage.cs (3)
41
return
SendMessage
(hWnd, Msg, wParam, (LPARAM)c);
56
return
SendMessage
(hWnd, Msg, wParam, (LPARAM)l);
72
return
SendMessage
(hWnd, Msg, (WPARAM)(nuint)w, (LPARAM)(nint)l);
System.Windows.Forms (439)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (4)
66
public override int TextLength => (int)PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.WM_GETTEXTLENGTH);
326
PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end);
331
int index = PARAM.LOWORD(PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt)));
367
int i = (int)PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\ActiveX\AxHost.cs (1)
1253
if ((int)PInvokeCore.
SendMessage
(this, _subclassCheckMessage) == REGMSG_RETVAL)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
383
PInvokeCore.
SendMessage
(target, lpmsg->message, lpmsg->wParam, lpmsg->lParam);
476
PInvokeCore.
SendMessage
(_control, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags);
System\Windows\Forms\Application.cs (1)
764
PInvokeCore.
SendMessage
(handle, PInvokeCore.WM_THEMECHANGED);
System\Windows\Forms\Control.ControlNativeWindow.cs (1)
98
PInvokeCore.
SendMessage
(_control, RegisteredMessage.WM_MOUSEENTER);
System\Windows\Forms\Control.cs (18)
1585
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
3369
PInvokeCore.
SendMessage
(
3416
PInvokeCore.
SendMessage
(TopMostParent,
4384
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
5011
PInvokeCore.
SendMessage
(
5079
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
6334
return ((int)PInvokeCore.
SendMessage
(this, PInvokeCore.WM_GETDLGCODE) & mask) != 0;
6372
&& ((uint)PInvokeCore.
SendMessage
(this, PInvokeCore.WM_GETDLGCODE) & mask) != 0;
7491
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_HSCROLL, WPARAM.MAKEWPARAM((int)SCROLLBAR_COMMAND.SB_THUMBPOSITION, si.nPos));
8858
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_PRINT, (WPARAM)hDC, (LPARAM)lParam);
8875
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_PRINT, (WPARAM)dcWrapper.HDC, (LPARAM)lParam);
9049
uint current = (uint)PInvokeCore.
SendMessage
(this, PInvokeCore.WM_QUERYUISTATE);
9056
current = (uint)PInvokeCore.
SendMessage
(topMostParent, PInvokeCore.WM_QUERYUISTATE);
9100
PInvokeCore.
SendMessage
(
9420
m.ResultInternal = PInvokeCore.
SendMessage
(
10714
private void SetWindowFont() => PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETFONT, (WPARAM)FontHandle, (LPARAM)(BOOL)false);
11682
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)screenLocation);
11816
m.ResultInternal = PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1188
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)true);
1216
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
208
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState);
498
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETCHECK, (WPARAM)(int)_checkState);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
165
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)value);
349
PInvokeCore.
SendMessage
(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)_isChecked);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
185
PInvokeCore.
SendMessage
(_owningComboBox, PInvoke.CB_SETTOPINDEX, (WPARAM)GetCurrentIndex());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (4)
105
? (int)PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.WM_GETTEXTLENGTH)
399
PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end);
404
int index = (int)PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_CHARFROMPOS, (WPARAM)0, (LPARAM)pt);
442
int i = (int)PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (27)
446
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)value);
486
get => IsHandleCreated && (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETDROPPEDSTATE) != 0;
494
PInvokeCore.
SendMessage
(this, PInvoke.CB_SHOWDROPDOWN, (WPARAM)(value ? -1 : 0));
595
int height = (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETITEMHEIGHT);
703
PInvokeCore.
SendMessage
(this, PInvoke.CB_LIMITTEXT, (WPARAM)value);
872
get => IsHandleCreated ? (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETCURSEL) : _selectedIndex;
885
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETCURSEL, (WPARAM)value);
979
PInvokeCore.
SendMessage
(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&start), (LPARAM)(&end));
1000
PInvokeCore.
SendMessage
(this, PInvoke.CB_GETEDITSEL, (WPARAM)(&value));
1578
PInvokeCore.
SendMessage
(
1736
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CONTEXTMENU, m.WParamInternal, m.LParamInternal);
1965
int h = (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)index);
2174
PInvokeCore.
SendMessage
(this, PInvoke.CB_RESETCONTENT);
2187
int maxLength = (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETLBTEXTLEN, (WPARAM)index);
2196
int actualLength = (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETLBTEXT, (WPARAM)index, (LPARAM)b);
2236
PInvokeCore.
SendMessage
(this, PInvoke.CB_DELETESTRING, (WPARAM)index);
2271
PInvokeCore.
SendMessage
(this, PInvoke.CB_LIMITTEXT, (WPARAM)MaxLength);
2300
PInvokeCore.
SendMessage
(_childEdit, PInvokeCore.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
2306
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)dropDownWidth);
2357
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETCURSEL, (WPARAM)_selectedIndex);
3231
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETEDITSEL, (WPARAM)0, LPARAM.MAKELPARAM(start, end));
3275
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETCURSEL, (WPARAM)DataManager.Position);
3373
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight);
3374
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETITEMHEIGHT, 0, ItemHeight);
3378
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)(-1), (LPARAM)ItemHeight);
3382
int original = (int)PInvokeCore.
SendMessage
(this, PInvoke.CB_GETITEMHEIGHT, (WPARAM)i);
3387
PInvokeCore.
SendMessage
(this, PInvoke.CB_SETITEMHEIGHT, (WPARAM)i, (LPARAM)mievent.ItemHeight);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
21906
PInvokeCore.
SendMessage
(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
21922
PInvokeCore.
SendMessage
(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
30093
PInvokeCore.
SendMessage
(EditingControl, m.MsgInternal, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
618
PInvokeCore.
SendMessage
(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)s_cachedDropDownWidth);
625
int dropDownWidth = (int)PInvokeCore.
SendMessage
(comboBox, PInvoke.CB_GETDROPPEDWIDTH);
628
PInvokeCore.
SendMessage
(comboBox, PInvoke.CB_SETDROPPEDWIDTH, (WPARAM)DropDownWidth);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
363
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_NONE);
979
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_NONE);
1278
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETMCCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value);
1289
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETMCFONT, (WPARAM)CalendarFontHandle, (LPARAM)(-1));
1503
HWND handle = (HWND)PInvokeCore.
SendMessage
(this, PInvoke.DTM_GETMONTHCAL);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (2)
136
PInvokeCore.
SendMessage
(owner, PInvokeCore.WM_SYSKEYDOWN, (WPARAM)(int)Keys.Down);
145
PInvokeCore.
SendMessage
(owner, PInvoke.DTM_CLOSEMONTHCAL);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
252
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
261
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
304
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
464
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
763
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (27)
257
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth);
421
internal int FocusedIndex => IsHandleCreated ? (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETCARETINDEX) : -1;
596
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETITEMHEIGHT, 0, value);
837
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETCURSEL);
1115
get => IsHandleCreated ? (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETTOPINDEX) : _topIndex;
1120
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETTOPINDEX, (WPARAM)value);
1423
int height = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETITEMHEIGHT, (WPARAM)index);
1478
int selection = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETSEL, (WPARAM)index);
1515
int index = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_ITEMFROMPOINT, 0, PARAM.FromLowHigh(x, y));
1556
PInvokeCore.
SendMessage
(this, PInvoke.LB_RESETCONTENT);
1565
int maxLength = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETTEXTLEN, (WPARAM)index);
1574
int actualLength = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETTEXT, (WPARAM)index, (LPARAM)b);
1614
bool selected = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETSEL, (WPARAM)index) > 0;
1615
PInvokeCore.
SendMessage
(this, PInvoke.LB_DELETESTRING, (WPARAM)index);
1637
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETCURSEL, (WPARAM)(value ? index : -1));
1641
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (LPARAM)index);
1664
int index = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETCURSEL);
1674
int count = (int)PInvokeCore.
SendMessage
(this, PInvoke.LB_GETSELCOUNT);
1680
PInvokeCore.
SendMessage
(this, PInvoke.LB_GETSELITEMS, (WPARAM)count, (LPARAM)pResult);
1745
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETLOCALE, (WPARAM)PInvokeCore.GetThreadLocale());
1749
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETCOLUMNWIDTH, (WPARAM)_columnWidth);
1754
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETITEMHEIGHT, (WPARAM)0, (LPARAM)ItemHeight);
1759
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETTOPINDEX, (WPARAM)_topIndex);
1770
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (LPARAM)pOffsets);
2116
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETCURSEL, (WPARAM)DataManager.Position);
2255
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETHORIZONTALEXTENT, (WPARAM)width);
2312
PInvokeCore.
SendMessage
(this, PInvoke.LB_SETTABSTOPS, (WPARAM)wpar, (nint)pOffsets);
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (5)
207
PInvokeCore.
SendMessage
(_owningListBox, PInvoke.LB_SETCARETINDEX, (WPARAM)currentIndex);
211
int firstVisibleIndex = (int)PInvokeCore.
SendMessage
(_owningListBox, PInvoke.LB_GETTOPINDEX);
214
PInvokeCore.
SendMessage
(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)currentIndex);
224
int itemHeight = (int)PInvokeCore.
SendMessage
(_owningListBox, PInvoke.LB_GETITEMHEIGHT, (WPARAM)i);
236
PInvokeCore.
SendMessage
(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)(currentIndex - visibleItemsCount + 1));
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
55
return (int)PInvokeCore.
SendMessage
(_owner, PInvoke.LB_GETSELCOUNT);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
395
HWND hwndHdr = (HWND)PInvokeCore.
SendMessage
(ListView, PInvoke.LVM_GETHEADER);
398
int nativeColumnCount = (int)PInvokeCore.
SendMessage
(hwndHdr, PInvoke.HDM_GETITEMCOUNT);
401
_width = (int)PInvokeCore.
SendMessage
(ListView, PInvoke.LVM_GETCOLUMNWIDTH, (WPARAM)Index);
483
PInvokeCore.
SendMessage
(ListView, PInvoke.LVM_SETCOLUMNORDERARRAY, (WPARAM)cols.Length, (LPARAM)pCols);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
334
PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)colIdx);
507
int retval = (int)PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_DELETECOLUMN, (WPARAM)index);
System\Windows\Forms\Controls\ListView\ListView.cs (67)
354
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
559
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
563
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, PInvoke.LVSIL_STATE);
810
int displayIndex = (int)PInvokeCore.
SendMessage
(
841
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor);
954
PInvokeCore.
SendMessage
(
1218
PInvokeCore.
SendMessage
(
1457
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)(value?.Handle ?? 0));
1562
PInvokeCore.
SendMessage
(this,
1580
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE);
1598
PInvokeCore.
SendMessage
(
1724
_topIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETTOPINDEX);
1835
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETVIEW, (WPARAM)(int)_viewStyle);
1884
topIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETTOPINDEX);
1891
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_virtualListSize);
2187
HWND hwnd = (HWND)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETHEADER);
2396
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_TIMER, (WPARAM)LVLABELEDITTIMER);
3177
if (PInvokeCore.
SendMessage
(this, PInvoke.LVM_HASGROUP, (WPARAM)DefaultGroup.ID) == 0)
3196
PInvokeCore.
SendMessage
(this, PInvoke.LVM_ENSUREVISIBLE, (WPARAM)index);
3366
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)PInvoke.LVS_EX_CHECKBOXES);
3367
PInvokeCore.
SendMessage
(
3568
return (LIST_VIEW_ITEM_STATE_FLAGS)(uint)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMSTATE, (WPARAM)index, (LPARAM)(uint)mask);
3705
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, handle);
3794
HWND header = (HWND)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETHEADER);
4118
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)_itemCount);
4145
IntPtr result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_ISGROUPVIEWENABLED);
4147
result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId);
4305
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)handle);
4514
PInvokeCore.
SendMessage
(this, PInvoke.LVM_UPDATE, (WPARAM)(-1));
4533
int version = (int)PInvokeCore.
SendMessage
(this, PInvoke.CCM_GETVERSION);
4536
PInvokeCore.
SendMessage
(this, PInvoke.CCM_SETVERSION, (WPARAM)5);
4542
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
4543
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)ForeColor);
4549
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)PInvokeCore.CLR_NONE);
4563
LIST_VIEW_ITEM_STATE_FLAGS callbackMask = (LIST_VIEW_ITEM_STATE_FLAGS)(int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETCALLBACKMASK);
4565
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCALLBACKMASK, (WPARAM)(uint)callbackMask);
4570
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETVIEW, (WPARAM)(uint)_viewStyle);
4626
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMCOUNT, (WPARAM)VirtualListSize);
4682
PInvokeCore.
SendMessage
(
4695
HWND columnHeaderHandle = (HWND)PInvokeCore.
SendMessage
(
4925
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
4929
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTEXTBKCOLOR, (WPARAM)0, (LPARAM)PInvokeCore.CLR_NONE);
4987
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKCOLOR, (WPARAM)0, (LPARAM)c);
4994
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTEXTCOLOR, (WPARAM)0, (LPARAM)c);
5000
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.Handle);
5005
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.Handle);
5010
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.Handle);
5015
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.Handle);
5039
int retval = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_REDRAWITEMS, (WPARAM)startIndex, (LPARAM)endIndex);
5147
PInvokeCore.
SendMessage
(this, PInvoke.LVM_REMOVEGROUP, (WPARAM)group.ID);
5153
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SCROLL, (WPARAM)0, (LPARAM)scrollY);
5340
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)columnIndex, LPARAM.MAKELPARAM(width, 0));
5350
PInvokeCore.
SendMessage
(
5363
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCOLUMNWIDTH, (WPARAM)index, LPARAM.MAKELPARAM(width, 0));
5381
PInvokeCore.
SendMessage
(
5517
int colWidth = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETCOLUMNWIDTH);
5552
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETSELECTIONMARK, (WPARAM)0, itemIndex);
5563
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)handle);
5583
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SORTITEMS, (WPARAM)0, (LPARAM)callbackPointer);
5596
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)handle);
5638
PInvokeCore.
SendMessage
(this, PInvoke.LVM_UPDATE, (WPARAM)(-1));
5732
PInvokeCore.
SendMessage
(
5852
int retval = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_ENABLEGROUPVIEW, (WPARAM)(BOOL)GroupsEnabled);
6376
HWND hwndHdr = (HWND)PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETHEADER);
6377
HFONT hFont = (HFONT)PInvokeCore.
SendMessage
(hwndHdr, PInvokeCore.WM_GETFONT);
6455
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE);
6497
_labelEdit.AssignHandle(PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETEDITCONTROL));
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (4)
226
int nextSelected = (int)PInvokeCore.
SendMessage
(
245
nextSelected = (int)PInvokeCore.
SendMessage
(
261
PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_DELETEALLITEMS);
421
if (PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_DELETEITEM, (WPARAM)index) == 0)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
32
return (int)PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
58
int fidx = (int)PInvokeCore.
SendMessage
(
106
fidx = (int)PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (4)
32
int cnt = (int)PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
40
int fidx = (int)PInvokeCore.
SendMessage
(
94
return (int)PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_GETSELECTEDCOUNT);
129
fidx = (int)PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
421
LIST_VIEW_GROUP_STATE_FLAGS state = (LIST_VIEW_GROUP_STATE_FLAGS)(uint)PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
165
return (LIST_VIEW_GROUP_STATE_FLAGS)(uint)PInvokeCore.
SendMessage
(
174
if (PInvokeCore.
SendMessage
(_owningListView, PInvoke.LVM_HASGROUP, (WPARAM)_owningGroup.ID) == 0)
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (3)
71
_color = new COLORREF((uint)PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_GETINSERTMARKCOLOR));
83
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32());
140
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_SETINSERTMARKCOLOR, 0, _color.ToWin32());
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
880
PInvokeCore.
SendMessage
(lv, PInvoke.LVM_EDITLABELW, (WPARAM)Index);
1099
nint result = PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_ISGROUPVIEWENABLED);
1101
result = PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_HASGROUP, (WPARAM)lvItem.iGroupId);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (9)
396
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, 0, (nint)value);
484
if (PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)value) == 0)
618
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)value);
1235
int maxTodayWidth = (int)PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETMAXTODAYWIDTH);
1357
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)_maxSelectionCount);
1384
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETFIRSTDAYOFWEEK, (WPARAM)0, (LPARAM)firstDay);
1389
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETMONTHDELTA, (WPARAM)_scrollChange);
1688
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETCOLOR, (WPARAM)(int)colorIndex, (LPARAM)value);
2007
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETTODAY, 0, 0);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (15)
262
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)false, (LPARAM)_marqueeAnimationSpeed);
266
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)true, (LPARAM)_marqueeAnimationSpeed);
302
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
340
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
352
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32());
361
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32());
430
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETSTEP, (WPARAM)_step);
608
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETRANGE32, (WPARAM)_minimum, (LPARAM)_maximum);
609
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETSTEP, (WPARAM)_step);
610
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETPOS, (WPARAM)_value);
611
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (LPARAM)BackColor);
612
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBARCOLOR, (WPARAM)0, (LPARAM)ForeColor);
692
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETPOS, (WPARAM)_value);
706
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBARCOLOR, 0, ForeColor.ToWin32());
707
PInvokeCore.
SendMessage
(this, PInvoke.PBM_SETBKCOLOR, 0, BackColor.ToWin32());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
596
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
609
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (2)
138
PInvokeCore.
SendMessage
(
162
PInvokeCore.
SendMessage
(this, PInvoke.TTM_UPDATE);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
181
return PInvokeCore.
SendMessage
(EditTextBox, PInvokeCore.EM_CANUNDO) != 0;
1086
PInvokeCore.
SendMessage
(EditTextBox, PInvokeCore.WM_UNDO);
1525
m.ResultInternal = PInvokeCore.
SendMessage
(control, m.MsgInternal, m.WParamInternal, m.LParamInternal);
2633
PInvokeCore.
SendMessage
(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (LPARAM)e.Location);
3478
PInvokeCore.
SendMessage
(EditTextBox, PInvokeCore.WM_LBUTTONDOWN, 0, PARAM.FromPoint(editPoint));
3479
PInvokeCore.
SendMessage
(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (LPARAM)editPoint);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (35)
169
PInvokeCore.
SendMessage
(
250
public bool CanRedo => IsHandleCreated && (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CANREDO) != 0;
343
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_AUTOURLDETECT, (WPARAM)(BOOL)(value));
465
? (RichTextBoxLanguageOptions)(int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETLANGOPTIONS)
474
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETLANGOPTIONS, 0, (nint)value);
531
int n = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETREDONAME);
578
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETTARGETDEVICE, (WPARAM)hdc, Pixel2Twip(value, true));
1266
int n = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SELECTIONTYPE);
1293
PInvokeCore.
SendMessage
(
1355
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY);
1386
return (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTLENGTHEX, (WPARAM)(>l));
1410
int n = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETUNDONAME);
1598
=> PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CANPASTE, (WPARAM)clipFormat.Id) != 0;
1830
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SCROLLCARET);
2247
=> (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXLINEFROMCHAR, 0, index);
2265
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_POSFROMCHAR, (WPARAM)(&position), index);
2340
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32());
2420
PInvokeCore.
SendMessage
(
2435
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_AUTOURLDETECT, (WPARAM)(DetectUrls ? 1 : 0));
2446
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETBKGNDCOLOR, (WPARAM)0, (LPARAM)BackColor);
2580
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_PASTESPECIAL, (WPARAM)clipFormat.Id);
2602
public void Redo() => PInvokeCore.
SendMessage
(this, PInvokeCore.EM_REDO);
2677
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETZOOM, (WPARAM)numerator, (LPARAM)denominator);
2790
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CLEAR);
2895
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXLIMITTEXT, 0, int.MaxValue);
2917
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(-1));
2920
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETLINECOUNT);
3034
int expectedLength = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTLENGTHEX, (WPARAM)pGtl);
3054
int actualLength = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTEX, (WPARAM)pGt, (LPARAM)b);
3092
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETOLECALLBACK, 0, (nint)oleCallback);
3106
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETBKGNDCOLOR, 0, BackColor.ToWin32());
3203
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXLIMITTEXT, 0, (IntPtr)MaxLength);
3384
LRESULT compMode = PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETIMECOMPMODE);
3390
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_KILLFOCUS);
3391
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETFOCUS);
System\Windows\Forms\Controls\TabControl\TabControl.cs (15)
478
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETIMAGELIST, 0, handle);
648
=> (int)PInvokeCore.
SendMessage
(this, PInvoke.TCM_GETROWCOUNT);
662
get => IsHandleCreated ? (int)PInvokeCore.
SendMessage
(this, PInvoke.TCM_GETCURSEL) : _selectedIndex;
690
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETCURSEL, (WPARAM)value);
942
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETITEMSIZE, 0, PARAM.FromLowHigh(_itemSize.Width, _itemSize.Height));
1142
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETIMAGELIST, 0, ImageList!.Handle);
1241
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETPADDING, 0, PARAM.FromPoint(_padding));
1250
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETIMAGELIST, 0, _imageList.Handle);
1255
HWND tooltipHwnd = (HWND)PInvokeCore.
SendMessage
(this, PInvoke.TCM_GETTOOLTIPS);
1558
PInvokeCore.
SendMessage
(this, PInvoke.TCM_DELETEALLITEMS);
1593
PInvokeCore.
SendMessage
(this, (PInvoke.TCM_DELETEALLITEMS));
1611
PInvokeCore.
SendMessage
(this, PInvoke.TCM_DELETEITEM, (WPARAM)index);
1647
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETTOOLTIPS, (WPARAM)toolTip.Handle);
1666
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETCURSEL, (WPARAM)index);
1995
PInvokeCore.
SendMessage
(this, PInvoke.TCM_SETCURSEL, (WPARAM)_lastSelection);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1099
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)pwdChar);
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
338
return (char)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPASSWORDCHAR);
350
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)value);
603
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPASSWORDCHAR, (WPARAM)_passwordChar);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (27)
391
public bool CanUndo => IsHandleCreated && (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CANUNDO) != 0;
667
bool curState = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETMODIFY) != 0;
689
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)value);
937
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETREADONLY, (WPARAM)(BOOL)value);
1004
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LIMITTEXT);
1011
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY);
1020
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LIMITTEXT, (WPARAM)_maxLength);
1088
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY);
1278
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EMPTYUNDOBUFFER);
1291
public void Copy() => PInvokeCore.
SendMessage
(this, PInvokeCore.WM_COPY);
1316
public void Cut() => PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CUT);
1387
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)true);
1411
public void Paste() => PInvokeCore.
SendMessage
(this, PInvokeCore.WM_PASTE);
1567
int index = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CHARFROMPOS, 0, PARAM.FromPoint(pt));
1597
public virtual int GetLineFromCharIndex(int index) => (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LINEFROMCHAR, (WPARAM)index);
1609
int i = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_POSFROMCHAR, (WPARAM)index);
1620
return (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LINEINDEX, (WPARAM)lineNumber);
1626
public int GetFirstCharIndexOfCurrentLine() => (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LINEINDEX, (WPARAM)(-1));
1648
if (PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETOLEINTERFACE, 0, (void**)richEdit) == 0)
1650
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SCROLLCARET);
1677
int firstVisibleLine = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETFIRSTVISIBLELINE);
1694
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SCROLLCARET);
1749
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end);
1862
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end);
1985
public void Undo() => PInvokeCore.
SendMessage
(this, PInvokeCore.EM_UNDO);
1991
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_LIMITTEXT, (WPARAM)_maxLength);
2032
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETMARGINS, (WPARAM)(PInvoke.EC_LEFTMARGIN | PInvoke.EC_RIGHTMARGIN));
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (5)
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
(
427
PInvokeCore.
SendMessage
(Owner, PInvokeCore.EM_SETSEL, (WPARAM)start, (LPARAM)end);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2650
PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1984
PInvokeCore.
SendMessage
(activeWindow, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true, (LPARAM)(-1));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (15)
293
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETPAGESIZE, 0, value);
438
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum);
496
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETLINESIZE, 0, value);
580
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETTICFREQ, (WPARAM)value);
795
PInvokeCore.
SendMessage
(this, PInvoke.TBM_CLEARTICS, (WPARAM)1, (LPARAM)0);
798
LRESULT lresult = PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETTIC, lParam: (IntPtr)i);
818
_value = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.WM_USER);
862
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum);
863
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)false, (LPARAM)_maximum);
866
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETTICFREQ, (WPARAM)_tickFrequency);
873
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETPAGESIZE, (WPARAM)0, (LPARAM)_largeChange);
874
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETLINESIZE, (WPARAM)0, (LPARAM)_smallChange);
1061
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum);
1062
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum);
1120
PInvokeCore.
SendMessage
(this, PInvoke.TBM_SETPOS, (WPARAM)(BOOL)true, (LPARAM)reflectedValue);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (11)
702
LRESULT next = PInvokeCore.
SendMessage
(
860
LRESULT prev = PInvokeCore.
SendMessage
(
1290
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_EDITLABELW, 0, (LPARAM)HTREEITEMInternal);
1473
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_COLLAPSE, (LPARAM)Handle);
1592
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)cancel);
1661
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_ENSUREVISIBLE, 0, Handle);
1679
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_EXPAND, (WPARAM)(uint)NM_TREEVIEW_ACTION.TVE_EXPAND, (LPARAM)Handle);
1877
nint editHandle = PInvokeCore.
SendMessage
(tv, PInvoke.TVM_GETEDITCONTROL);
1882
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)false);
1907
PInvokeCore.
SendMessage
(tv, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
1984
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_DELETEITEM, 0, (LPARAM)HTREEITEMInternal);
System\Windows\Forms\Controls\TreeView\TreeView.cs (40)
201
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETBKCOLOR, 0, BackColor.ToWin32());
206
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent);
446
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETTEXTCOLOR, 0, ForeColor.ToWin32());
628
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, 0, value is null ? 0 : value.Handle);
741
return (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETINDENT);
756
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETINDENT, (WPARAM)value);
757
_indent = (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETINDENT);
779
return (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMHEIGHT);
814
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)value);
815
_itemHeight = (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMHEIGHT);
858
int intColor = (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETLINECOLOR);
871
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32());
1090
IntPtr hItem = PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_CARET);
1117
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_CARET, (LPARAM)hnode);
1303
IntPtr hitem = PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETNEXTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE);
1319
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_FIRSTVISIBLE, (LPARAM)hnode);
1339
public int VisibleCount => IsHandleCreated ? (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETVISIBLECOUNT) : 0;
1599
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
1606
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
1622
PInvokeCore.
SendMessage
(toolTip, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
1623
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETTOOLTIPS, (WPARAM)toolTip.Handle);
1692
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, 0, handle);
1856
int version = (int)PInvokeCore.
SendMessage
(this, PInvoke.CCM_GETVERSION);
1859
PInvokeCore.
SendMessage
(this, PInvoke.CCM_SETVERSION, 5);
1885
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETBKCOLOR, 0, c.ToWin32());
1892
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETTEXTCOLOR, 0, c.ToWin32());
1898
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETLINECOLOR, 0, _lineColor.ToWin32());
1903
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, 0, _imageList.Handle);
1913
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETINDENT, (WPARAM)_indent);
1918
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)ItemHeight);
1988
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)newImageList.Handle);
1998
IntPtr handleOld = PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)handle);
2009
IntPtr handle = PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE);
2015
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE);
2569
_labelEdit.AssignHandle(PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETEDITCONTROL));
2636
PInvokeCore.
SendMessage
(this,
2674
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE);
3051
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CONTEXTMENU, (WPARAM)HWND, (LPARAM)PInvoke.GetMessagePos());
3116
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SELECTITEM, (WPARAM)PInvoke.TVGN_DROPHILITE);
3386
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETINDENT, (WPARAM)Indent);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
189
int itemHeight = (int)PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMHEIGHT);
191
PInvokeCore.
SendMessage
(this, PInvoke.TVM_SETITEMHEIGHT, (WPARAM)itemHeight);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
511
int sizeNeeded = (int)PInvokeCore.
SendMessage
(_dialogHWnd, PInvoke.CDM_GETSPEC);
System\Windows\Forms\Dialogs\MessageBox.cs (1)
491
PInvokeCore.
SendMessage
(handle, PInvokeCore.WM_SETFOCUS);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
121
PInvokeCore.
SendMessage
(
131
PInvokeCore.
SendMessage
(_tipWindow, PInvoke.TTM_SETDELAYTIME, (WPARAM)PInvoke.TTDT_INITIAL);
System\Windows\Forms\Form.cs (12)
314
IntPtr hwnd = PInvokeCore.
SendMessage
(_ctlClient, PInvokeCore.WM_MDIGETACTIVE);
2184
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SHOWWINDOW, (WPARAM)(BOOL)value);
2828
PInvokeCore.
SendMessage
(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (WPARAM)HWND);
3251
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_CLOSE);
3414
PInvokeCore.
SendMessage
(TaskbarOwner, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
5134
PInvokeCore.
SendMessage
(MdiParentInternal.MdiClient, PInvokeCore.WM_MDIACTIVATE, (WPARAM)HWND);
5712
PInvokeCore.
SendMessage
(captureHwnd, PInvokeCore.WM_CANCELMODE);
6201
PInvokeCore.
SendMessage
(_ctlClient, PInvokeCore.WM_MDISETMENU, (WPARAM)dummyMenu.Value);
6471
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL, (LPARAM)_smallIcon.Handle);
6474
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG, (LPARAM)icon.Handle);
6478
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_SMALL);
6479
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETICON, (WPARAM)PInvoke.ICON_BIG);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
455
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETCURSOR, (WPARAM)HWND, (LPARAM)(int)PInvoke.HTCLIENT);
System\Windows\Forms\MDI\MDIClient.cs (4)
148
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_MDICASCADE);
151
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_VERTICAL);
154
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_MDITILE, (WPARAM)(uint)TILE_WINDOWS_HOW.MDITILE_HORIZONTAL);
157
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_MDIICONARRANGE);
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
80
HICON hIcon = (HICON)PInvokeCore.
SendMessage
(GetSafeHandle(_target), PInvokeCore.WM_GETICON, (WPARAM)PInvoke.ICON_SMALL);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
1227
PInvokeCore.
SendMessage
(
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
735
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_KILLFOCUS);
736
PInvokeCore.
SendMessage
(this, PInvokeCore.WM_SETFOCUS);
System\Windows\Forms\ToolTip\ToolTip.cs (15)
117
PInvokeCore.
SendMessage
(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)value);
183
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)_backColor);
252
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)_foreColor);
441
PInvokeCore.
SendMessage
(this, PInvoke.TTM_UPDATE);
469
PInvokeCore.
SendMessage
(this, PInvoke.TTM_UPDATE);
732
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
771
PInvokeCore.
SendMessage
(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)_active);
775
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETTIPBKCOLOR, (WPARAM)BackColor);
780
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETTIPTEXTCOLOR, (WPARAM)ForeColor);
964
return (int)PInvokeCore.
SendMessage
(this, PInvoke.TTM_GETDELAYTIME, (WPARAM)type);
1181
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETDELAYTIME, (WPARAM)type, (LPARAM)time);
1709
PInvokeCore.
SendMessage
(this, PInvoke.TTM_TRACKPOSITION, 0, PARAM.FromLowHigh(pointX, pointY));
2084
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, maxwidth);
2234
PInvokeCore.
SendMessage
(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width);
2325
font = Font.FromHfont(PInvokeCore.
SendMessage
(this, PInvokeCore.WM_GETFONT));
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
147
PInvokeCore.
SendMessage
(hWndCapture, PInvokeCore.WM_CANCELMODE);
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
68
uint exstyle = (uint)PInvokeCore.
SendMessage
(hwnd, PInvoke.TVM_GETEXTENDEDSTYLE);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
647
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
833
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\ControlDesigner.cs (4)
1890
PInvokeCore.
SendMessage
(Control, PInvokeCore.WM_SETFOCUS);
1924
PInvokeCore.
SendMessage
(
1973
PInvokeCore.
SendMessage
(
2020
PInvokeCore.
SendMessage
(
System\Windows\Forms\Design\DesignerFrame.cs (4)
87
PInvokeCore.
SendMessage
(_designer, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)focus);
181
PInvokeCore.
SendMessage
(_designerRegion, PInvokeCore.WM_MOUSEWHEEL, m.WParamInternal, m.LParamInternal);
205
PInvokeCore.
SendMessage
(_designerRegion, msg, (WPARAM)(int)wScrollNotify);
211
PInvokeCore.
SendMessage
(_designer!, m.MsgInternal, m.WParamInternal, m.LParamInternal);
System\Windows\Forms\Design\DesignerUtils.cs (4)
443
PInvokeCore.
SendMessage
(
822
=> (uint)PInvokeCore.
SendMessage
(handle, PInvoke.TVM_GETEXTENDEDSTYLE);
838
PInvokeCore.
SendMessage
(treeView, PInvoke.TVM_SETEXTENDEDSTYLE, 0, (nint)exstyle);
851
PInvokeCore.
SendMessage
(
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1051
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
400
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true);
412
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
186
PInvokeCore.
SendMessage
(listBox, PInvoke.LB_RESETCONTENT);
System\Windows\Forms\Design\ListViewDesigner.cs (1)
81
HWND headerHwnd = (HWND)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETHEADER);
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
501
PInvokeCore.
SendMessage
(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
535
PInvokeCore.
SendMessage
(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
755
PInvokeCore.
SendMessage
(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
803
PInvokeCore.
SendMessage
(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\PbrsForward.cs (1)
116
PInvokeCore.
SendMessage
(hwnd, bk.KeyChar.MsgInternal, bk.KeyChar.WParamInternal, bk.KeyChar.LParamInternal);
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
33
int hitTest = (int)PInvokeCore.
SendMessage
(f, PInvokeCore.WM_NCHITTEST, 0, PARAM.FromLowHigh(pt.X, pt.Y));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
874
PInvokeCore.
SendMessage
(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
876
PInvokeCore.
SendMessage
(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
954
PInvokeCore.
SendMessage
(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false);
956
PInvokeCore.
SendMessage
(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47
LRESULT result = PInvokeCore.
SendMessage
(sender, message, (WPARAM)(BOOL)state, (LPARAM)i);