254 references to SendMessage
System.Windows.Forms (254)
winforms\Managed\System\WinForms\AxHost.cs (1)
1617
if (unchecked( (int) (long)
SendMessage
(REGMSG_MSG, 0, 0)) == REGMSG_RETVAL) {
winforms\Managed\System\WinForms\ButtonBase.cs (2)
1080
SendMessage
(NativeMethods.BM_SETSTATE, 1, 0);
1107
SendMessage
(NativeMethods.BM_SETSTATE, 0, 0);
winforms\Managed\System\WinForms\CheckBox.cs (2)
268
SendMessage
(NativeMethods.BM_SETCHECK, (int)checkState, 0);
610
SendMessage
(NativeMethods.BM_SETCHECK, (int)checkState, 0);
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
627
SendMessage
(NativeMethods.LB_SETITEMHEIGHT, 0, ItemHeight);
893
SendMessage
(NativeMethods.LB_SETITEMHEIGHT, 0, ItemHeight);
winforms\Managed\System\WinForms\ComboBox.cs (20)
548
SendMessage
(NativeMethods.CB_SETDROPPEDWIDTH, value, 0);
602
return unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETDROPPEDSTATE, 0, 0) ) != 0;
615
SendMessage
(NativeMethods.CB_SHOWDROPDOWN, value ? -1 : 0, 0);
739
int h = unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETITEMHEIGHT, 0, 0) );
853
if (IsHandleCreated)
SendMessage
(NativeMethods.CB_LIMITTEXT, value, 0);
1037
return unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETCURSEL, 0, 0) );
1055
SendMessage
(NativeMethods.CB_SETCURSEL, value, 0);
2177
int h = unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETITEMHEIGHT, index, 0) );
2347
SendMessage
(NativeMethods.CB_RESETCONTENT, 0, 0);
2357
int len = unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETLBTEXTLEN, index, 0));
2392
SendMessage
(NativeMethods.CB_DELETESTRING, index, 0);
2429
SendMessage
(NativeMethods.CB_LIMITTEXT, MaxLength, 0);
2467
SendMessage
(NativeMethods.CB_SETDROPPEDWIDTH, dropDownWidth, 0);
2504
SendMessage
(NativeMethods.CB_SETCURSEL, selectedIndex, 0);
3307
SendMessage
(NativeMethods.CB_SETCURSEL, DataManager.Position, 0);
3393
SendMessage
(NativeMethods.CB_SETITEMHEIGHT, -1, ItemHeight);
3394
SendMessage
(NativeMethods.CB_SETITEMHEIGHT, 0, ItemHeight);
3397
SendMessage
(NativeMethods.CB_SETITEMHEIGHT, -1, ItemHeight);
3400
int original = unchecked( (int) (long)
SendMessage
(NativeMethods.CB_GETITEMHEIGHT, i, 0));
3404
SendMessage
(NativeMethods.CB_SETITEMHEIGHT, i, mievent.ItemHeight);
winforms\Managed\System\WinForms\Control.cs (7)
5603
if (updateCount == 0)
SendMessage
(NativeMethods.WM_SETREDRAW, 0, 0);
6240
SendMessage
(NativeMethods.WM_SETREDRAW, -1, 0);
7622
return(unchecked( (int) (long)
SendMessage
(NativeMethods.WM_GETDLGCODE, 0, 0)) & mask) != 0;
7659
return(unchecked( (int) (long)
SendMessage
(NativeMethods.WM_GETDLGCODE, 0, 0)) & mask) != 0;
10777
int current = unchecked( (int) (long)
SendMessage
(NativeMethods.WM_QUERYUISTATE, 0, 0));
10783
current = (int)topMostParent.
SendMessage
(NativeMethods.WM_QUERYUISTATE, 0, 0);
14644
control.
SendMessage
(NativeMethods.WM_MOUSEENTER, 0, 0);
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
1397
SendMessage
(NativeMethods.DTM_SETMCCOLOR, colorIndex, ColorTranslator.ToWin32(value));
1636
IntPtr handle =
SendMessage
(NativeMethods.DTM_GETMONTHCAL, 0,0);
winforms\Managed\System\WinForms\Form.cs (4)
470
IntPtr hwnd = this.ctlClient.
SendMessage
(NativeMethods.WM_MDIGETACTIVE, 0, 0);
3570
SendMessage
(NativeMethods.WM_CLOSE, 0, 0);
6825
SendMessage
(NativeMethods.WM_SETICON,NativeMethods.ICON_SMALL,0);
6826
SendMessage
(NativeMethods.WM_SETICON,NativeMethods.ICON_BIG,0);
winforms\Managed\System\WinForms\GroupBox.cs (2)
325
SendMessage
(NativeMethods.WM_SETREDRAW, 0, 0);
331
SendMessage
(NativeMethods.WM_SETREDRAW, 1, 0);
winforms\Managed\System\WinForms\ListBox.cs (23)
319
SendMessage
(NativeMethods.LB_SETCOLUMNWIDTH, columnWidth, 0);
462
return unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETCARETINDEX, 0, 0));
634
SendMessage
(NativeMethods.LB_SETITEMHEIGHT, 0, value);
873
return unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETCURSEL, 0, 0));
1143
return unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETTOPINDEX, 0, 0));
1151
SendMessage
(NativeMethods.LB_SETTOPINDEX, value, 0);
1488
int h = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETITEMHEIGHT, index, 0));
1534
int sel = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETSEL, index, 0));
1567
int index = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_ITEMFROMPOINT, 0, unchecked( (int) (long)NativeMethods.Util.MAKELPARAM(x, y))));
1607
SendMessage
(NativeMethods.LB_RESETCONTENT, 0, 0);
1614
int len = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETTEXTLEN, index, 0));
1653
SendMessage
(NativeMethods.LB_DELETESTRING, index, 0);
1672
SendMessage
(NativeMethods.LB_SETCURSEL, (value ? index : -1), 0);
1675
SendMessage
(NativeMethods.LB_SETSEL, value? -1: 0, index);
1699
int index = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETCURSEL, 0, 0));
1705
int count = unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETSELCOUNT, 0, 0));
1765
SendMessage
(NativeMethods.LB_SETLOCALE, CultureInfo.CurrentCulture.LCID, 0);
1768
SendMessage
(NativeMethods.LB_SETCOLUMNWIDTH, columnWidth, 0);
1771
SendMessage
(NativeMethods.LB_SETITEMHEIGHT, 0, ItemHeight);
1775
SendMessage
(NativeMethods.LB_SETTOPINDEX, topIndex, 0);
2105
SendMessage
(NativeMethods.LB_SETCURSEL, DataManager.Position, 0);
2216
SendMessage
(NativeMethods.LB_SETHORIZONTALEXTENT, width, 0);
4153
return unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LB_GETSELCOUNT, 0, 0));
winforms\Managed\System\WinForms\ListView.cs (38)
386
SendMessage
(NativeMethods.LVM_SETBKCOLOR, 0, ColorTranslator.ToWin32(BackColor));
825
int displayIndex = unchecked( (int) (long)
SendMessage
(NativeMethods.LVM_GETNEXTITEM, -1, NativeMethods.LVNI_FOCUSED));
855
SendMessage
(NativeMethods.LVM_SETTEXTCOLOR, 0, ColorTranslator.ToWin32(ForeColor));
1700
topIndex = unchecked( (int) (long)
SendMessage
(NativeMethods.LVM_GETTOPINDEX, 0, 0));
1792
SendMessage
(NativeMethods.LVM_SETVIEW,(int)viewStyle,0);
1831
topIndex = unchecked( (int) (long)
SendMessage
(NativeMethods.LVM_GETTOPINDEX, 0, 0));
1837
SendMessage
(NativeMethods.LVM_SETITEMCOUNT, virtualListSize, 0);
3046
if (
SendMessage
(NativeMethods.LVM_HASGROUP, DefaultGroup.ID, 0) == IntPtr.Zero) {
3220
SendMessage
(NativeMethods.LVM_SETEXTENDEDLISTVIEWSTYLE, NativeMethods.LVS_EX_CHECKBOXES, 0);
3221
SendMessage
(NativeMethods.LVM_SETEXTENDEDLISTVIEWSTYLE, NativeMethods.LVS_EX_CHECKBOXES, NativeMethods.LVS_EX_CHECKBOXES);
3396
return unchecked( (int) (long)
SendMessage
(NativeMethods.LVM_GETITEMSTATE, index, mask));
3877
SendMessage
(NativeMethods.LVM_SETITEMCOUNT, itemCount, 0);
4232
SendMessage
(NativeMethods.LVM_UPDATE, -1, 0);
4260
int version = unchecked((int)(long)
SendMessage
(NativeMethods.CCM_GETVERSION, 0, 0));
4262
SendMessage
(NativeMethods.CCM_SETVERSION, 5, 0);
4267
SendMessage
(NativeMethods.LVM_SETBKCOLOR,0,color);
4268
SendMessage
(NativeMethods.LVM_SETTEXTCOLOR,0,ColorTranslator.ToWin32(base.ForeColor));
4275
SendMessage
(NativeMethods.LVM_SETTEXTBKCOLOR, 0,NativeMethods.CLR_NONE);
4294
SendMessage
(NativeMethods.LVM_SETVIEW,(int)viewStyle,0);
4340
SendMessage
(NativeMethods.LVM_SETITEMCOUNT, VirtualListSize, 0);
4552
SendMessage
(NativeMethods.LVM_SETBKCOLOR, 0,color);
4555
SendMessage
(NativeMethods.LVM_SETTEXTBKCOLOR, 0,NativeMethods.CLR_NONE);
4644
SendMessage
(NativeMethods.LVM_SETBKCOLOR, 0, ColorTranslator.ToWin32(c));
4648
SendMessage
(NativeMethods.LVM_SETTEXTCOLOR, 0, ColorTranslator.ToWin32(c));
5156
SendMessage
(NativeMethods.LVM_SETSELECTIONMARK, 0, itemIndex);
5237
SendMessage
(NativeMethods.LVM_UPDATE, -1, 0);
5301
SendMessage
(NativeMethods.LVM_SETEXTENDEDLISTVIEWSTYLE, exMask, exStyle);
5333
int retval = unchecked( (int) (long)
SendMessage
(NativeMethods.LVM_ENABLEGROUPVIEW, GroupsEnabled ? 1 : 0, 0));
6990
return unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETSELECTEDCOUNT, 0, 0));
7009
int fidx = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETNEXTITEM, displayIndex, NativeMethods.LVNI_SELECTED));
7048
fidx = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETNEXTITEM, fidx, NativeMethods.LVNI_SELECTED));
7310
int cnt = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETSELECTEDCOUNT, 0, 0));
7317
int fidx = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETNEXTITEM, displayIndex, NativeMethods.LVNI_SELECTED));
7357
return unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETSELECTEDCOUNT, 0, 0));
7390
fidx = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_GETNEXTITEM, fidx, NativeMethods.LVNI_SELECTED));
8004
owner.
SendMessage
(NativeMethods.LVM_DELETECOLUMN, colIdx, 0);
8186
int retval = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_DELETECOLUMN, index, 0));
9163
int retval = unchecked( (int) (long)owner.
SendMessage
(NativeMethods.LVM_DELETEITEM, index, 0));
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (3)
78
color = SafeNativeMethods.ColorFromCOLORREF((int)listView.
SendMessage
(NativeMethods.LVM_GETINSERTMARKCOLOR, 0, 0));
87
listView.
SendMessage
(NativeMethods.LVM_SETINSERTMARKCOLOR, 0, SafeNativeMethods.ColorToCOLORREF(color));
140
listView.
SendMessage
(NativeMethods.LVM_SETINSERTMARKCOLOR, 0, SafeNativeMethods.ColorToCOLORREF(color));
winforms\Managed\System\WinForms\ListViewItem.cs (2)
1160
Debug.Assert(!updateOwner || listView.
SendMessage
(NativeMethods.LVM_ISGROUPVIEWENABLED, 0, 0) != IntPtr.Zero, "Groups not enabled");
1161
Debug.Assert(!updateOwner || listView.
SendMessage
(NativeMethods.LVM_HASGROUP, lvItem.iGroupId, 0) != IntPtr.Zero, "Doesn't contain group id: " + lvItem.iGroupId.ToString(CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
1230
SendMessage
(NativeMethods.EM_SETPASSWORDCHAR, pwdChar, 0);
winforms\Managed\System\WinForms\MDIClient.cs (4)
171
SendMessage
(NativeMethods.WM_MDICASCADE, 0, 0);
174
SendMessage
(NativeMethods.WM_MDITILE, NativeMethods.MDITILE_VERTICAL, 0);
177
SendMessage
(NativeMethods.WM_MDITILE, NativeMethods.MDITILE_HORIZONTAL, 0);
180
SendMessage
(NativeMethods.WM_MDIICONARRANGE, 0, 0);
winforms\Managed\System\WinForms\MonthCalendar.cs (8)
519
SendMessage
(NativeMethods.MCM_SETFIRSTDAYOFWEEK, 0, (int) value);
615
if (unchecked( (int) (long)
SendMessage
(NativeMethods.MCM_SETMAXSELCOUNT, value, 0)) == 0)
788
SendMessage
(NativeMethods.MCM_SETMONTHDELTA, value, 0);
1505
int maxTodayWidth = unchecked( (int) (long)
SendMessage
(NativeMethods.MCM_GETMAXTODAYWIDTH, 0, 0));
1631
SendMessage
(NativeMethods.MCM_SETMAXSELCOUNT, maxSelectionCount, 0);
1653
SendMessage
(NativeMethods.MCM_SETFIRSTDAYOFWEEK, 0, firstDay);
1657
SendMessage
(NativeMethods.MCM_SETMONTHDELTA, scrollChange, 0);
1979
SendMessage
(NativeMethods.MCM_SETCOLOR, colorIndex, ColorTranslator.ToWin32(value));
winforms\Managed\System\WinForms\ProgressBar.cs (9)
363
SendMessage
(NativeMethods.PBM_SETMARQUEE, 0, marqueeSpeed);
367
SendMessage
(NativeMethods.PBM_SETMARQUEE, 1, marqueeSpeed);
404
SendMessage
(NativeMethods.PBM_SETRANGE32, minimum, maximum);
441
SendMessage
(NativeMethods.PBM_SETRANGE32, minimum, maximum);
553
if (IsHandleCreated)
SendMessage
(NativeMethods.PBM_SETSTEP, step, 0);
785
SendMessage
(NativeMethods.PBM_SETRANGE32, minimum, maximum);
786
SendMessage
(NativeMethods.PBM_SETSTEP, step, 0);
787
SendMessage
(NativeMethods.PBM_SETPOS, value, 0);
884
if (IsHandleCreated)
SendMessage
(NativeMethods.PBM_SETPOS, value, 0);
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
767
SendMessage
(NativeMethods.WM_SETREDRAW, 0, 0);
776
SendMessage
(NativeMethods.WM_SETREDRAW, 1, 0);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
235
this.
SendMessage
(NativeMethods.TTM_UPDATE, 0, 0);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
267
return (0 != (int)Edit.
SendMessage
(NativeMethods.EM_CANUNDO, 0, 0));
1225
Edit.
SendMessage
(NativeMethods.WM_UNDO, 0, 0);
2816
Edit.
SendMessage
(NativeMethods.WM_LBUTTONUP, 0, (int)(me.Y << 16 | (me.X & 0xFFFF)));
3643
Edit.
SendMessage
(NativeMethods.WM_LBUTTONDOWN, 0, (int)(editPoint.Y << 16 | (editPoint.X & 0xFFFF)));
3644
Edit.
SendMessage
(NativeMethods.WM_LBUTTONUP, 0, (int)(editPoint.Y << 16 | (editPoint.X & 0xFFFF)));
winforms\Managed\System\WinForms\RadioButton.cs (2)
225
if (IsHandleCreated)
SendMessage
(NativeMethods.BM_SETCHECK, value? 1: 0, 0);
430
SendMessage
(NativeMethods.BM_SETCHECK, isChecked? 1: 0, 0);
winforms\Managed\System\WinForms\RichTextBox.cs (27)
232
SendMessage
(RichTextBoxConstants.EM_SETOPTIONS,
345
b = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_CANREDO, 0, 0)) != 0;
453
this.
SendMessage
(RichTextBoxConstants.EM_AUTOURLDETECT, value ? 1 : 0, 0);
670
n = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_GETREDONAME, 0, 0));
1398
n = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_SELECTIONTYPE, 0, 0));
1423
SendMessage
(RichTextBoxConstants.EM_SETOPTIONS,
1483
SendMessage
(NativeMethods.EM_SETMODIFY, 0, 0);
1540
n = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_GETUNDONAME, 0, 0));
1800
b = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_CANPASTE, clipFormat.Id, 0)) != 0;
2066
SendMessage
(NativeMethods.EM_SCROLLCARET, 0, 0);
2361
return unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_EXLINEFROMCHAR, 0, index));
2464
SendMessage
(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor));
2544
SendMessage
(RichTextBoxConstants.EM_SETEVENTMASK,
2560
this.
SendMessage
(RichTextBoxConstants.EM_AUTOURLDETECT, DetectUrls ? 1 : 0, 0);
2568
SendMessage
(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor));
2741
SendMessage
(RichTextBoxConstants.EM_REDO, 0, 0);
2830
SendMessage
(RichTextBoxConstants.EM_SETZOOM, numerator, denominator);
2981
SendMessage
(NativeMethods.WM_CLEAR, 0, 0);
3060
SendMessage
(RichTextBoxConstants.EM_EXLIMITTEXT, 0, Int32.MaxValue);
3089
SendMessage
(NativeMethods.EM_SETMODIFY, -1, 0);
3092
SendMessage
(NativeMethods.EM_GETLINECOUNT, 0, 0);
3268
this.AllowOleObjects = (0 != unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_SETQUERYRTFOBJ, 0, 1)));
3303
SendMessage
(RichTextBoxConstants.EM_SETBKGNDCOLOR, 0, ColorTranslator.ToWin32(BackColor));
3395
SendMessage
(RichTextBoxConstants.EM_EXLIMITTEXT, 0, MaxLength);
3619
int compMode = unchecked( (int) (long)
SendMessage
(RichTextBoxConstants.EM_GETIMECOMPMODE, 0, 0));
3625
SendMessage
(NativeMethods.WM_KILLFOCUS, 0, 0);
3626
SendMessage
(NativeMethods.WM_SETFOCUS, 0, 0);
winforms\Managed\System\WinForms\ScrollBar.cs (2)
930
SendMessage
(NativeMethods.WM_KILLFOCUS, 0, 0);
931
SendMessage
(NativeMethods.WM_SETFOCUS, 0, 0);
winforms\Managed\System\WinForms\StatusBar.cs (2)
444
SendMessage
(NativeMethods.SB_SIMPLE, bShowPanels, 0);
696
SendMessage
(NativeMethods.SB_SIMPLE, 1, 0);
winforms\Managed\System\WinForms\TabControl.cs (9)
703
n = unchecked( (int) (long)
SendMessage
(NativeMethods.TCM_GETROWCOUNT, 0, 0));
725
n = unchecked( (int) (long)
SendMessage
(NativeMethods.TCM_GETCURSEL, 0, 0));
754
SendMessage
(NativeMethods.TCM_SETCURSEL, value, 0);
1077
SendMessage
(NativeMethods.TCM_SETITEMSIZE, 0, (int)NativeMethods.Util.MAKELPARAM(itemSize.Width, itemSize.Height));
1360
tooltipHwnd =
SendMessage
(NativeMethods.TCM_GETTOOLTIPS, 0, 0);
1661
SendMessage
(NativeMethods.TCM_DELETEALLITEMS, 0, 0);
1692
SendMessage
(NativeMethods.TCM_DELETEALLITEMS, 0, 0);
1710
SendMessage
(NativeMethods.TCM_DELETEITEM, index, 0);
2079
SendMessage
(NativeMethods.TCM_SETCURSEL, lastSelection, 0);
winforms\Managed\System\WinForms\TextBox.cs (3)
387
return (char)
SendMessage
(NativeMethods.EM_GETPASSWORDCHAR, 0, 0);
395
SendMessage
(NativeMethods.EM_SETPASSWORDCHAR, value, 0);
655
SendMessage
(NativeMethods.EM_SETPASSWORDCHAR, passwordChar, 0);
winforms\Managed\System\WinForms\TextBoxBase.cs (23)
469
b = unchecked( (int) (long)
SendMessage
(NativeMethods.EM_CANUNDO, 0, 0)) != 0;
783
bool curState = (0 != unchecked( (int) (long)
SendMessage
(NativeMethods.EM_GETMODIFY, 0, 0)));
800
SendMessage
(NativeMethods.EM_SETMODIFY, value ? 1 : 0, 0);
1072
SendMessage
(NativeMethods.EM_SETREADONLY, value? -1: 0, 0);
1134
SendMessage
(NativeMethods.EM_LIMITTEXT, 0, 0);
1139
SendMessage
(NativeMethods.EM_SETMODIFY, 0, 0);
1147
SendMessage
(NativeMethods.EM_LIMITTEXT, maxLength, 0);
1244
SendMessage
(NativeMethods.EM_SETMODIFY, 0, 0);
1458
SendMessage
(NativeMethods.EM_EMPTYUNDOBUFFER, 0, 0);
1470
SendMessage
(NativeMethods.WM_COPY, 0, 0);
1502
SendMessage
(NativeMethods.WM_CUT, 0, 0);
1560
SendMessage
(NativeMethods.EM_SETMODIFY, 1, 0);
1591
SendMessage
(NativeMethods.WM_PASTE, 0, 0);
1784
return unchecked( (int) (long)
SendMessage
(NativeMethods.EM_LINEFROMCHAR, index, 0));
1807
return unchecked( (int) (long)
SendMessage
(NativeMethods.EM_LINEINDEX, lineNumber, 0));
1815
return unchecked( (int) (long)
SendMessage
(NativeMethods.EM_LINEINDEX, -1, 0));
1868
int firstVisibleLine = unchecked( (int) (long)
SendMessage
(NativeMethods.EM_GETFIRSTVISIBLELINE, 0, 0));
1895
SendMessage
(NativeMethods.EM_SCROLLCARET, 0, 0);
1956
SendMessage
(NativeMethods.EM_SETSEL, s, e);
2063
SendMessage
(NativeMethods.EM_SETSEL, start, end);
2174
SendMessage
(NativeMethods.EM_UNDO, 0, 0);
2179
SendMessage
(NativeMethods.EM_LIMITTEXT, maxLength, 0);
2221
SendMessage
(NativeMethods.EM_SETMARGINS, NativeMethods.EC_LEFTMARGIN | NativeMethods.EC_RIGHTMARGIN, 0);
winforms\Managed\System\WinForms\ToolBar.cs (8)
380
int result = unchecked( (int) (long)
SendMessage
(NativeMethods.TB_GETBUTTONSIZE, 0, 0));
730
height = height * unchecked( (int) (long)
SendMessage
(NativeMethods.TB_GETROWS, 0, 0));
1250
SendMessage
(NativeMethods.TB_AUTOSIZE, 0, 0);
1290
SendMessage
(NativeMethods.TB_BUTTONSTRUCTSIZE, Marshal.SizeOf(typeof(NativeMethods.TBBUTTON)), 0);
1295
SendMessage
(NativeMethods.TB_SETEXTENDEDSTYLE, 0, NativeMethods.TBSTYLE_EX_DRAWDDARROWS);
1391
SendMessage
(NativeMethods.TB_AUTOSIZE, 0, 0);
1979
owner.
SendMessage
(NativeMethods.TB_DELETEBUTTON, x - 1, 0);
2123
owner.
SendMessage
(NativeMethods.TB_DELETEBUTTON, index, 0);
winforms\Managed\System\WinForms\ToolBarButton.cs (3)
173
parent.
SendMessage
(NativeMethods.TB_ENABLEBUTTON, FindButtonIndex(),
286
if ((int)parent.
SendMessage
(NativeMethods.TB_ISBUTTONINDETERMINATE, FindButtonIndex(), 0) != 0)
569
if ((int)parent.
SendMessage
(NativeMethods.TB_ISBUTTONCHECKED, FindButtonIndex(), 0) != 0) {
winforms\Managed\System\WinForms\TrackBar.cs (13)
368
SendMessage
(NativeMethods.TBM_SETPAGESIZE, 0, value);
520
SendMessage
(NativeMethods.TBM_SETRANGEMAX, 1, maximum);
576
SendMessage
(NativeMethods.TBM_SETLINESIZE, 0, value);
662
SendMessage
(NativeMethods.TBM_SETTICFREQ, value, 0);
883
value = unchecked( (int) (long)
SendMessage
(NativeMethods.TBM_GETPOS, 0, 0));
923
SendMessage
(NativeMethods.TBM_SETRANGEMIN, 0, minimum);
924
SendMessage
(NativeMethods.TBM_SETRANGEMAX, 0, maximum);
925
SendMessage
(NativeMethods.TBM_SETTICFREQ, tickFrequency, 0);
926
SendMessage
(NativeMethods.TBM_SETPAGESIZE, 0, largeChange);
927
SendMessage
(NativeMethods.TBM_SETLINESIZE, 0, smallChange);
1099
SendMessage
(NativeMethods.TBM_SETRANGEMIN, 0, minimum);
1105
SendMessage
(NativeMethods.TBM_SETRANGEMAX, 1, maximum);
1148
SendMessage
(NativeMethods.TBM_SETPOS, 1, reflectedValue);
winforms\Managed\System\WinForms\TreeView.cs (24)
212
SendMessage
(NativeMethods.TVM_SETBKCOLOR, 0, ColorTranslator.ToWin32(BackColor));
217
SendMessage
(NativeMethods.TVM_SETINDENT, Indent, 0);
465
SendMessage
(NativeMethods.TVM_SETTEXTCOLOR, 0, ColorTranslator.ToWin32(ForeColor));
756
return unchecked( (int) (long)
SendMessage
(NativeMethods.TVM_GETINDENT, 0, 0));
771
SendMessage
(NativeMethods.TVM_SETINDENT, value, 0);
772
indent = unchecked( (int) (long)
SendMessage
(NativeMethods.TVM_GETINDENT, 0, 0));
793
return unchecked( (int) (long)
SendMessage
(NativeMethods.TVM_GETITEMHEIGHT, 0, 0));
823
SendMessage
(NativeMethods.TVM_SETITEMHEIGHT, value, 0);
824
itemHeight = unchecked( (int) (long)
SendMessage
(NativeMethods.TVM_GETITEMHEIGHT, 0, 0));
867
int intColor = unchecked((int)(long)
SendMessage
(NativeMethods.TVM_GETLINECOLOR, 0, 0));
876
SendMessage
(NativeMethods.TVM_SETLINECOLOR, 0, ColorTranslator.ToWin32(lineColor));
1124
IntPtr hItem =
SendMessage
(NativeMethods.TVM_GETNEXTITEM, NativeMethods.TVGN_CARET, 0);
1335
IntPtr hitem =
SendMessage
(NativeMethods.TVM_GETNEXTITEM, NativeMethods.TVGN_FIRSTVISIBLE, 0);
1374
return unchecked( (int) (long)
SendMessage
(NativeMethods.TVM_GETVISIBLECOUNT, 0, 0));
1748
SendMessage
(NativeMethods.WM_SETREDRAW, 0, 0);
1752
SendMessage
(NativeMethods.WM_SETREDRAW, 1, 0);
1981
int version = unchecked((int)(long)
SendMessage
(NativeMethods.CCM_GETVERSION, 0, 0));
1983
SendMessage
(NativeMethods.CCM_SETVERSION, 5, 0);
2006
SendMessage
(NativeMethods.TVM_SETBKCOLOR, 0, ColorTranslator.ToWin32(c));
2010
SendMessage
(NativeMethods.TVM_SETTEXTCOLOR, 0, ColorTranslator.ToWin32(c));
2014
SendMessage
(NativeMethods.TVM_SETLINECOLOR, 0, ColorTranslator.ToWin32(lineColor));
2026
SendMessage
(NativeMethods.TVM_SETINDENT, indent, 0);
2030
SendMessage
(NativeMethods.TVM_SETITEMHEIGHT, ItemHeight, 0);
3364
SendMessage
(NativeMethods.TVM_SETINDENT, Indent, 0);