274 references to SendMessage
System.Windows.Forms (121)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
355
PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_GETRECT, 0, ref rectangle);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
41
int result = (int)PInvokeCore.
SendMessage
(
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
430
PInvokeCore.
SendMessage
(_owningChildEdit, PInvokeCore.EM_GETRECT, (WPARAM)0, ref rectangle);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (6)
341
nint result = PInvokeCore.
SendMessage
(this, PInvoke.DTM_GETSYSTEMTIME, 0, ref systemTime);
359
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
896
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
977
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1263
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1321
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETRANGE, (WPARAM)flags, ref times[0]);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
392
PInvokeCore.
SendMessage
(this, PInvoke.LB_GETITEMRECT, (WPARAM)index, ref rect);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1446
if (PInvokeCore.
SendMessage
(this, PInvoke.LB_GETITEMRECT, (uint)index, ref rect) == 0)
System\Windows\Forms\Controls\ListView\ListView.cs (32)
404
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref lvbkImage);
1663
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
1693
nint result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
2212
&& PInvokeCore.
SendMessage
(hwnd, PInvoke.HDM_HITTEST, (WPARAM)0, ref lvhi) != -1 && lvhi.iItem > -1)
3319
int index = (int)PInvokeCore.
SendMessage
(
3426
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(lastIndex - 1), ref info);
3431
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(-1) /* beginning */, ref info);
3491
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3540
int index = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
3556
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMPOSITION, (WPARAM)index, ref position);
3602
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3631
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3679
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETSUBITEMRECT, (WPARAM)itemIndex, ref itemrect) == 0
3728
? (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi)
3729
: (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3935
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_INSERTCOLUMNW, (WPARAM)index, ref lvColumn);
3980
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
4195
insertIndex = (int)PInvokeCore.
SendMessage
(
4959
PInvokeCore.
SendMessage
(headerWindow, PInvoke.HDM_LAYOUT, (WPARAM)0, ref hd);
5203
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref backgroundImage);
5284
result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn);
5452
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5472
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5488
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMPOSITION32, (WPARAM)index, ref pt);
5508
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMSTATE, (WPARAM)index, ref lvItem);
5545
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMTEXTW, (WPARAM)itemIndex, ref lvItem);
5852
return PInvokeCore.
SendMessage
(this, msg, (WPARAM)lParam, ref lvgroup);
5882
nint retval = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
5901
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
5943
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6394
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6419
int groupID = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)(-1), ref lvhi);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
202
PInvokeCore.
SendMessage
(_owner, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
59
PInvokeCore.
SendMessage
(_owningListView, PInvoke.LVM_GETGROUPRECT, (WPARAM)nativeGroupId, ref groupRect);
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (3)
57
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_GETINSERTMARKRECT, (WPARAM)0, ref bounds);
121
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_INSERTMARKHITTEST, (WPARAM)(&pt), ref lvInsertMark);
136
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_SETINSERTMARK, 0, ref lvInsertMark);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
1107
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_SETITEMW, 0, ref lvItem);
1136
PInvokeCore.
SendMessage
(_listView, PInvoke.LVM_GETITEMW, 0, ref lvItem);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (8)
804
if (PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETMINREQRECT, 0, ref rect) == 0)
868
int result = (int)PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETTODAY, 0, ref systemTime);
1257
PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETMONTHRANGE, (WPARAM)(int)flag, ref times[0]);
1305
PInvokeCore.
SendMessage
(this, PInvoke.MCM_HITTEST, 0, ref mchi);
1371
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETTODAY, (WPARAM)0, ref systemTime);
1744
if (PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETRANGE, (WPARAM)flags, ref times[0]) == 0)
1889
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETSELRANGE, 0, ref times[0]);
2007
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETTODAY, 0, ref systemTime);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (4)
252
bool success = PInvokeCore.
SendMessage
(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0;
274
bool success = PInvokeCore.
SendMessage
(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo) != 0;
302
PInvokeCore.
SendMessage
(owner, PInvoke.MCM_GETCALENDARGRIDINFO, 0, ref gridInfo);
401
PInvokeCore.
SendMessage
(owner, PInvoke.MCM_HITTEST, 0, ref hitTestInfo);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3798
PInvokeCore.
SendMessage
(toolTip, PInvoke.TTM_ADJUSTRECT, (WPARAM)1, ref rect);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (29)
674
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
725
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
750
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
790
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
829
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, PInvoke.SCF_SELECTION, ref cf);
865
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf);
924
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf2);
966
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
988
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1014
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1036
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1136
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1159
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1183
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1213
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1223
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1459
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETZOOM, (WPARAM)(&numerator), ref denominator);
1838
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref chrg);
1917
position = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_FINDTEXT, (WPARAM)(uint)findOptions, ref ft);
2041
len = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg);
2135
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2219
int index = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CHARFROMPOS, 0, ref wpt);
2717
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf) != 0;
2725
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)charRange, ref cf) != 0;
2769
PInvokeCore.
SendMessage
(
2846
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref range);
2917
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMIN, (WPARAM)flags, ref es);
3017
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMOUT, (WPARAM)flags, ref es);
3206
int len = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg);
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
386
PInvokeCore.
SendMessage
(this, PInvoke.TCM_ADJUSTRECT, 0, ref rect);
1127
PInvokeCore.
SendMessage
(this, PInvoke.TCM_GETITEMRECT, (WPARAM)index, ref rect);
2162
return (int)PInvokeCore.
SendMessage
(this, msg, (WPARAM)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
886
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETSEL, (WPARAM)(&startResult), ref end);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
441
PInvokeCore.
SendMessage
(Owner, PInvokeCore.EM_GETRECT, (WPARAM)0, ref rectangle);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (10)
241
if (PInvokeCore.
SendMessage
(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) == 0)
270
if (PInvokeCore.
SendMessage
(tv, PInvoke.TVM_GETITEMRECT, 0, ref rc) == 0)
313
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_SETITEMW, 0, ref item);
337
PInvokeCore.
SendMessage
(_treeView, PInvoke.TVM_GETITEMW, 0, ref item);
628
bool visible = PInvokeCore.
SendMessage
(tv, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0;
972
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_GETITEMW, 0, ref item);
1885
HTREEITEMInternal = (HTREEITEM)PInvokeCore.
SendMessage
(tv, PInvoke.TVM_INSERTITEMW, 0, ref tvis);
2032
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_SETITEMW, 0, ref item);
2180
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_SETITEMW, 0, ref item);
2215
PInvokeCore.
SendMessage
(tv, PInvoke.TVM_SETITEMW, 0, ref item);
System\Windows\Forms\Controls\TreeView\TreeView.cs (12)
1645
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
1686
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
2066
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2548
if (PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0)
2926
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2932
PInvokeCore.
SendMessage
(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds);
2957
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3034
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3206
PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMW, 0, ref item1);
3275
_mouseDownNode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3312
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
3393
_mouseDownNode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhit);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
313
PInvokeCore.
SendMessage
((HWND)hWnd, PInvokeCore.WM_CHOOSEFONT_GETLOGFONT, (WPARAM)0, ref logFont);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2073
PInvokeCore.
SendMessage
(this, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref rect);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ListViewDesigner.cs (1)
86
PInvokeCore.
SendMessage
(headerHwnd, PInvoke.HDM_HITTEST, 0, ref _hdrhit);
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
54
PInvokeCore.
SendMessage
(Control, PInvoke.TVM_HITTEST, 0, ref _tvhit);
System.Windows.Forms.Tests (145)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
297
PInvokeCore.
SendMessage
(list, PInvoke.LVM_GETGROUPRECT, (WPARAM)listGroup.ID, ref groupRect);
333
PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPRECT, (WPARAM)group.ID, ref groupRect);
System\Windows\Forms\ColumnHeaderTests.cs (7)
223
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNORDERARRAY, 3, ref result[0]));
449
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
479
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
669
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
701
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
1017
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, 0, ref column));
1206
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETCOLUMNW, (WPARAM)columnIndex, ref column));
System\Windows\Forms\ListBoxTests.cs (8)
771
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETITEMRECT, 0, ref rc));
2661
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
2667
Assert.Equal(2, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
2673
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3178
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3185
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3191
Assert.Equal(2, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
3197
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LB_GETSELITEMS, (WPARAM)buffer.Length, ref buffer[0]));
System\Windows\Forms\ListViewGroupTests.cs (9)
237
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
377
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
517
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
629
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
773
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
891
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1025
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1146
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
1295
Assert.Equal(1, PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup));
System\Windows\Forms\ListViewInsertionMarkTests.cs (14)
101
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
113
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
125
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
152
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
164
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
176
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
377
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
389
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
474
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
487
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
499
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
529
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
542
Assert.Equal(0, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
554
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.LVM_GETINSERTMARK, 0, ref insertMark));
System\Windows\Forms\ListViewTests.cs (2)
1944
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 0, ref lvgroup1));
1959
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(listView, PInvoke.LVM_GETGROUPINFOBYINDEX, 1, ref lvgroup2));
System\Windows\Forms\MonthCalendarTests.cs (3)
1031
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.MCM_GETSELRANGE, 0, ref range[0]));
1070
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.MCM_GETTODAY, 0, ref date));
1174
Assert.Equal(3, (int)PInvokeCore.
SendMessage
(control, PInvoke.MCM_GETRANGE, 0, ref range[0]));
System\Windows\Forms\RichTextBoxTests.cs (17)
1609
result = PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format);
1626
result = PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format1);
1752
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
1767
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
1776
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_ALL, ref format));
3783
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
3978
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4240
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4434
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4623
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
4938
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5158
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5349
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5747
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
5933
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
6380
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
6388
Assert.NotEqual(0, (int)PInvokeCore.
SendMessage
(control, PInvokeCore.EM_GETPARAFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format));
System\Windows\Forms\TabControl.ControlCollectionTests.cs (10)
780
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
788
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
796
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
848
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
856
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
864
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1492
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1500
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1550
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1558
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (22)
786
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
794
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
802
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
856
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
864
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
872
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
2812
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
2820
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
2828
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
2880
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
2888
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
2896
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3567
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3575
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3583
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3639
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3647
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3655
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
4612
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
4620
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
4672
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
4680
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
System\Windows\Forms\TabControlTests.cs (6)
1068
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 0, ref item));
1076
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 1, ref item));
1084
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 2, ref item));
4943
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 0, ref item));
4951
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 1, ref item));
4959
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TCM_GETITEMW, 2, ref item));
System\Windows\Forms\TabPageTests.cs (24)
1397
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1405
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1413
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1464
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1472
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1480
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1772
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1780
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1788
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
1836
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
1844
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
1852
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3028
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3036
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3044
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3095
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3103
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3111
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3401
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3409
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3417
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
3465
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 0, ref item));
3473
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 1, ref item));
3481
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(owner, PInvoke.TCM_GETITEMW, 2, ref item));
System\Windows\Forms\TreeNodeTests.cs (21)
675
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
943
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
1216
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
1243
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
1274
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
1489
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
1519
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
1551
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
3198
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
3227
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
3258
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
3473
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
3503
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
3535
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
3863
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
3893
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
3925
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
4226
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
4264
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
4304
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref column));
4462
Assert.Equal(1, (int)PInvokeCore.
SendMessage
(control, PInvoke.TVM_GETITEMW, 0, ref item));
System.Windows.Forms.UI.IntegrationTests (5)
Dpi\DpiMessageHelper.cs (2)
28
PInvokeCore.
SendMessage
(control, PInvokeCore.WM_GETDPISCALEDSIZE, wParam, ref suggestedRect);
29
return PInvokeCore.
SendMessage
(control, message, wParam, ref suggestedRect);
MonthCalendarTests.cs (2)
75
PInvokeCore.
SendMessage
(calendar, MessageId.WM_REFLECT_NOTIFY, 0, ref lParam);
168
Assert.NotEqual(default, PInvokeCore.
SendMessage
(control, PInvoke.MCM_GETCALENDARGRIDINFO, default, ref result));
RichTextBoxTests.cs (1)
206
PInvokeCore.
SendMessage
(control, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref format);
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
50
PInvokeCore.
SendMessage
(