123 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);
894
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (WPARAM)(uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
975
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1261
PInvokeCore.
SendMessage
(this, PInvoke.DTM_SETSYSTEMTIME, (uint)NMDATETIMECHANGE_FLAGS.GDT_VALID, ref systemTime);
1319
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)
1444
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);
1661
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
1691
nint result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
2210
&& PInvokeCore.
SendMessage
(hwnd, PInvoke.HDM_HITTEST, (WPARAM)0, ref lvhi) != -1 && lvhi.iItem > -1)
3314
int index = (int)PInvokeCore.
SendMessage
(
3421
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(lastIndex - 1), ref info);
3426
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(-1) /* beginning */, ref info);
3486
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3535
int index = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
3551
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMPOSITION, (WPARAM)index, ref position);
3597
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3626
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3674
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETSUBITEMRECT, (WPARAM)itemIndex, ref itemrect) == 0
3723
? (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi)
3724
: (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3930
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_INSERTCOLUMNW, (WPARAM)index, ref lvColumn);
3975
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
4190
insertIndex = (int)PInvokeCore.
SendMessage
(
4952
PInvokeCore.
SendMessage
(headerWindow, PInvoke.HDM_LAYOUT, (WPARAM)0, ref hd);
5194
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref backgroundImage);
5275
result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn);
5443
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5463
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5479
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMPOSITION32, (WPARAM)index, ref pt);
5499
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMSTATE, (WPARAM)index, ref lvItem);
5536
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMTEXTW, (WPARAM)itemIndex, ref lvItem);
5843
return PInvokeCore.
SendMessage
(this, msg, (WPARAM)lParam, ref lvgroup);
5873
nint retval = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
5892
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
5934
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6384
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6409
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)
798
if (PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETMINREQRECT, 0, ref rect) == 0)
862
int result = (int)PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETTODAY, 0, ref systemTime);
1251
PInvokeCore.
SendMessage
(this, PInvoke.MCM_GETMONTHRANGE, (WPARAM)(int)flag, ref times[0]);
1299
PInvokeCore.
SendMessage
(this, PInvoke.MCM_HITTEST, 0, ref mchi);
1365
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETTODAY, (WPARAM)0, ref systemTime);
1740
if (PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETRANGE, (WPARAM)flags, ref times[0]) == 0)
1885
PInvokeCore.
SendMessage
(this, PInvoke.MCM_SETSELRANGE, 0, ref times[0]);
2003
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)
3821
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);
1454
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETZOOM, (WPARAM)(&numerator), ref denominator);
1829
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref chrg);
1908
position = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_FINDTEXT, (WPARAM)(uint)findOptions, ref ft);
2032
len = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg);
2126
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2210
int index = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CHARFROMPOS, 0, ref wpt);
2703
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf) != 0;
2711
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)charRange, ref cf) != 0;
2755
PInvokeCore.
SendMessage
(
2832
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref range);
2898
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMIN, (WPARAM)flags, ref es);
2998
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMOUT, (WPARAM)flags, ref es);
3187
int len = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg);
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
384
PInvokeCore.
SendMessage
(this, PInvoke.TCM_ADJUSTRECT, 0, ref rect);
1122
PInvokeCore.
SendMessage
(this, PInvoke.TCM_GETITEMRECT, (WPARAM)index, ref rect);
2155
return (int)PInvokeCore.
SendMessage
(this, msg, (WPARAM)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
881
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)
1642
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
1683
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
2059
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2541
if (PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0)
2913
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2919
PInvokeCore.
SendMessage
(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds);
2944
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3021
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3193
PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMW, 0, ref item1);
3262
_mouseDownNode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3299
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
3380
_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)
2067
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);