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