75 references to SendMessage
System.Windows.Forms (75)
winforms\Managed\System\WinForms\Application.cs (1)
820
UnsafeNativeMethods.
SendMessage
(new HandleRef(null, handle), NativeMethods.WM_THEMECHANGED, 0, 0);
winforms\Managed\System\WinForms\ColumnHeader.cs (3)
397
IntPtr hwndHdr = UnsafeNativeMethods.
SendMessage
(new HandleRef(listview, listview.Handle), NativeMethods.LVM_GETHEADER, 0, 0);
399
int nativeColumnCount = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(listview, hwndHdr), NativeMethods.HDM_GETITEMCOUNT, 0, 0);
401
width = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(listview, listview.Handle), NativeMethods.LVM_GETCOLUMNWIDTH, Index, 0);
winforms\Managed\System\WinForms\ComboBox.cs (2)
1769
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, childEdit.Handle), NativeMethods.EM_SETMARGINS,
2459
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, childEdit.Handle), NativeMethods.EM_SETMARGINS,
winforms\Managed\System\WinForms\Control.cs (1)
11732
return UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), msg, wparam, lparam);
winforms\Managed\System\WinForms\DataGridToolTip.cs (2)
49
UnsafeNativeMethods.
SendMessage
(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
51
UnsafeNativeMethods.
SendMessage
(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETDELAYTIME, NativeMethods.TTDT_INITIAL, 0);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
840
UnsafeNativeMethods.
SendMessage
(new HandleRef(comboBox, comboBox.Handle), NativeMethods.CB_SETDROPPEDWIDTH, cachedDropDownWidth, 0);
847
int dropDownWidth = unchecked( (int) (long)UnsafeNativeMethods.
SendMessage
(new HandleRef(comboBox, comboBox.Handle), NativeMethods.CB_GETDROPPEDWIDTH, 0, 0));
850
UnsafeNativeMethods.
SendMessage
(new HandleRef(comboBox, comboBox.Handle), NativeMethods.CB_SETDROPPEDWIDTH, this.DropDownWidth, 0);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
29938
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (2)
778
itemHeight = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TVM_GETITEMHEIGHT, 0, 0);
780
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TVM_SETITEMHEIGHT, itemHeight, 0);
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
969
UnsafeNativeMethods.
SendMessage
(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
971
UnsafeNativeMethods.
SendMessage
(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETDELAYTIME, NativeMethods.TTDT_INITIAL, 0);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
353
UnsafeNativeMethods.
SendMessage
(new HandleRef(null, hwnd), (int) NativeMethods.BFFM_ENABLEOK, 0, isFileSystemFolder ? 1 : 0);
winforms\Managed\System\WinForms\Form.cs (5)
2684
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.WM_SHOWWINDOW, value ? 1 : 0, 0);
7884
UnsafeNativeMethods.
SendMessage
(new HandleRef(window, window.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, owner.Width);
7892
UnsafeNativeMethods.
SendMessage
(new HandleRef(window, window.Handle), NativeMethods.TTM_ACTIVATE, 1, 0);
7918
UnsafeNativeMethods.
SendMessage
(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight));
7938
UnsafeNativeMethods.
SendMessage
(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight));
winforms\Managed\System\WinForms\ListView.cs (13)
3063
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.LVM_ENSUREVISIBLE, index, 0);
3586
IntPtr hwndHdr = UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.LVM_GETHEADER, 0, 0);
4288
int callbackMask = unchecked( (int) (long)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle), NativeMethods.LVM_GETCALLBACKMASK, 0, 0));
4290
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle), NativeMethods.LVM_SETCALLBACKMASK, callbackMask, 0);
4697
int retval = (int) UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle),
4771
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle), NativeMethods.LVM_SCROLL, 0, scrollY);
5120
int colWidth = unchecked( (int) (long)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle), NativeMethods.LVM_GETCOLUMNWIDTH, 0, 0));
5774
IntPtr hwndHdr = UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.LVM_GETHEADER, 0, 0);
5775
IntPtr hFont = UnsafeNativeMethods.
SendMessage
(new HandleRef(this, hwndHdr), NativeMethods.WM_GETFONT, 0, 0);
6150
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
9003
int nextSelected = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(owner, owner.Handle), NativeMethods.LVM_GETNEXTITEM, -1, NativeMethods.LVNI_SELECTED);
9013
nextSelected = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(owner, owner.Handle), NativeMethods.LVM_GETNEXTITEM, nextSelected, NativeMethods.LVNI_SELECTED);
9025
UnsafeNativeMethods.
SendMessage
(new HandleRef(owner, owner.Handle), NativeMethods.LVM_DELETEALLITEMS, 0, 0);
winforms\Managed\System\WinForms\ListViewItem.cs (1)
962
UnsafeNativeMethods.
SendMessage
(new HandleRef(lv, lv.Handle), NativeMethods.LVM_EDITLABEL, Index, 0);
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
131
IntPtr hIcon = UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Control.GetSafeHandle(target)), NativeMethods.WM_GETICON, NativeMethods.ICON_SMALL, 0);
winforms\Managed\System\WinForms\MessageBox.cs (1)
495
UnsafeNativeMethods.
SendMessage
(new HandleRef(owner, handle), NativeMethods.WM_SETFOCUS, 0, 0);
winforms\Managed\System\WinForms\ProgressBar.cs (6)
453
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBKCOLOR, 0, ColorTranslator.ToWin32(BackColor));
462
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBARCOLOR, 0, ColorTranslator.ToWin32(ForeColor));
788
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBKCOLOR, 0, ColorTranslator.ToWin32(BackColor));
789
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBARCOLOR, 0, ColorTranslator.ToWin32(ForeColor));
893
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBARCOLOR, 0, ColorTranslator.ToWin32(ForeColor));
894
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.PBM_SETBKCOLOR, 0, ColorTranslator.ToWin32(BackColor));
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
216
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\RichTextBox.cs (2)
597
opt = (RichTextBoxLanguageOptions)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), RichTextBoxConstants.EM_GETLANGOPTIONS, 0, 0);
610
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETLANGOPTIONS, 0, (int) value);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1823
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\SystemInformation.cs (1)
137
int lines = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(null, hWndMouseWheel), message, 0, 0);
winforms\Managed\System\WinForms\TabControl.cs (1)
2205
UnsafeNativeMethods.
SendMessage
(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1756
int index = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.EM_CHARFROMPOS, 0, longPoint);
1795
int i = (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.EM_POSFROMCHAR, index, 0);
winforms\Managed\System\WinForms\ToolTip.cs (15)
144
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_ACTIVATE, (value==true)? 1: 0, 0);
225
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETTIPBKCOLOR, ColorTranslator.ToWin32(backColor), 0);
290
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETTIPTEXTCOLOR, ColorTranslator.ToWin32(foreColor), 0);
542
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_UPDATE, 0, 0);
581
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_UPDATE, 0, 0);
906
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
926
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_ACTIVATE, (active == true) ? 1 : 0, 0);
929
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETTIPBKCOLOR, ColorTranslator.ToWin32(BackColor), 0);
932
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETTIPTEXTCOLOR, ColorTranslator.ToWin32(ForeColor), 0);
1116
return (int)UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_GETDELAYTIME, type, 0);
1401
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETDELAYTIME, type, time);
1931
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, this.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(pointX, pointY));
2339
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, maxwidth);
2516
UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width);
2620
font = Font.FromHfont(UnsafeNativeMethods.
SendMessage
(new HandleRef(this, Handle), NativeMethods.WM_GETFONT, 0, 0));
winforms\Managed\System\WinForms\TreeNode.cs (4)
1493
UnsafeNativeMethods.
SendMessage
(new HandleRef(tv, tv.Handle), NativeMethods.TVM_ENDEDITLABELNOW, cancel?1:0, 0);
1711
IntPtr editHandle = UnsafeNativeMethods.
SendMessage
(new HandleRef(tv, tv.Handle), NativeMethods.TVM_GETEDITCONTROL, 0, 0);
1716
UnsafeNativeMethods.
SendMessage
(new HandleRef(tv, tv.Handle), NativeMethods.TVM_ENDEDITLABELNOW, 0 /* fCancel==FALSE */, 0);
1739
UnsafeNativeMethods.
SendMessage
(new HandleRef(tv, tv.Handle), NativeMethods.WM_SETREDRAW, 1, 0);
winforms\Managed\System\WinForms\TreeView.cs (2)
1764
UnsafeNativeMethods.
SendMessage
(new HandleRef(toolTip, toolTip.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
3210
UnsafeNativeMethods.
SendMessage
(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
728
UnsafeNativeMethods.
SendMessage
(new HandleRef(toolTipFromUrl, toolTipFromUrl.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, 600);