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)
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);
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)
3316
int index = (int)PInvokeCore.
SendMessage
(
3423
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(lastIndex - 1), ref info);
3428
displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_FINDITEMW, (WPARAM)(-1) /* beginning */, ref info);
3488
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3537
int index = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
3553
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMPOSITION, (WPARAM)index, ref position);
3599
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3628
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMRECT, (WPARAM)index, ref itemrect) == 0
3676
return PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETSUBITEMRECT, (WPARAM)itemIndex, ref itemrect) == 0
3725
? (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi)
3726
: (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
3932
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_INSERTCOLUMNW, (WPARAM)index, ref lvColumn);
3977
PInvokeCore.
SendMessage
(this, PInvoke.LVM_GETITEMW, (WPARAM)0, ref lvItem);
4192
insertIndex = (int)PInvokeCore.
SendMessage
(
4954
PInvokeCore.
SendMessage
(headerWindow, PInvoke.HDM_LAYOUT, (WPARAM)0, ref hd);
5196
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETBKIMAGEW, (WPARAM)0, ref backgroundImage);
5277
result = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn);
5445
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5465
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMW, (WPARAM)0, ref lvItem);
5481
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMPOSITION32, (WPARAM)index, ref pt);
5501
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMSTATE, (WPARAM)index, ref lvItem);
5538
PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETITEMTEXTW, (WPARAM)itemIndex, ref lvItem);
5845
return PInvokeCore.
SendMessage
(this, msg, (WPARAM)lParam, ref lvgroup);
5875
nint retval = PInvokeCore.
SendMessage
(this, PInvoke.LVM_SETTILEVIEWINFO, (WPARAM)0, ref tileViewInfo);
5894
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_SUBITEMHITTEST, (WPARAM)0, ref lvhi);
5936
int displayIndex = (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6386
return (int)PInvokeCore.
SendMessage
(this, PInvoke.LVM_HITTEST, (WPARAM)0, ref lvhi);
6411
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)
710
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
761
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
786
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
826
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
865
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, PInvoke.SCF_SELECTION, ref cf);
901
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf);
960
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf2);
1002
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1024
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1050
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1072
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1172
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1195
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1219
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1249
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETPARAFORMAT, 0, ref pf);
1259
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETPARAFORMAT, 0, ref pf);
1490
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETZOOM, (WPARAM)(&numerator), ref denominator);
1865
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref chrg);
1944
position = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_FINDTEXT, (WPARAM)(uint)findOptions, ref ft);
2068
len = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETTEXTRANGE, 0, ref txrg);
2162
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_GETCHARFORMAT, (WPARAM)(fSelection ? PInvoke.SCF_SELECTION : PInvoke.SCF_DEFAULT), ref cf);
2246
int index = (int)PInvokeCore.
SendMessage
(this, PInvokeCore.EM_CHARFROMPOS, 0, ref wpt);
2806
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)PInvoke.SCF_SELECTION, ref cf) != 0;
2814
return PInvokeCore.
SendMessage
(this, PInvokeCore.EM_SETCHARFORMAT, (WPARAM)charRange, ref cf) != 0;
2858
PInvokeCore.
SendMessage
(
2935
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_EXSETSEL, 0, ref range);
3001
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMIN, (WPARAM)flags, ref es);
3101
PInvokeCore.
SendMessage
(this, PInvokeCore.EM_STREAMOUT, (WPARAM)flags, ref es);
3290
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);
2165
return (int)PInvokeCore.
SendMessage
(this, msg, (WPARAM)wParam, ref tcitem);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1148
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)
1777
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
1818
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
2202
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
2757
if (PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMRECT, 1, ref rc) != 0)
3129
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3135
PInvokeCore.
SendMessage
(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds);
3160
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3237
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3409
PInvokeCore.
SendMessage
(this, PInvoke.TVM_GETITEMW, 0, ref item1);
3478
_mouseDownNode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhip);
3515
nint hnode = PInvokeCore.
SendMessage
(this, PInvoke.TVM_HITTEST, 0, ref tvhi);
3596
_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)
2071
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);