26 references to SendMessage
System.Windows.Forms (26)
winforms\Managed\System\WinForms\Control.cs (9)
2092
SendMessage
(NativeMethods.WM_SETCURSOR, Handle, (IntPtr)NativeMethods.HTCLIENT);
10404
SendMessage
(NativeMethods.WM_PRINT, hDC.Handle, lParam);
10419
SendMessage
(NativeMethods.WM_PRINT, dcWrapper.HDC, lParam);
11098
m.Result = control.
SendMessage
(NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam);
13503
SendMessage
(NativeMethods.WM_CONTEXTMENU, this.Handle, NativeMethods.Util.MAKELPARAM(pt.X, pt.Y));
13631
m.Result = control.
SendMessage
(NativeMethods.WM_REFLECT + m.Msg, handle, m.LParam);
14418
SendMessage
(m.Msg, (IntPtr)((unchecked((int)(long)m.WParam) << 16) | (int)keyState), m.LParam);
16602
target.
SendMessage
(msg.message, msg.wParam, msg.lParam);
16712
control.
SendMessage
(NativeMethods.WM_PRINT, hdcDraw, flags);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
22340
this.editingControl.
SendMessage
(m.Msg, m.WParam, m.LParam);
22357
this.editingControl.
SendMessage
(m.Msg, m.WParam, m.LParam);
29990
this.editingControl.
SendMessage
(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1407
SendMessage
(NativeMethods.DTM_SETMCFONT, CalendarFontHandle, NativeMethods.InvalidIntPtr);
winforms\Managed\System\WinForms\ListBox.cs (1)
1652
bool selected = (unchecked( (int) (long)
SendMessage
(NativeMethods.LB_GETSEL, (IntPtr)index, IntPtr.Zero)) > 0);
winforms\Managed\System\WinForms\ListView.cs (5)
1195
SendMessage
(NativeMethods.LVM_SETIMAGELIST, (IntPtr)NativeMethods.LVSIL_NORMAL, value == null ? IntPtr.Zero: value.Handle);
1439
SendMessage
(NativeMethods.LVM_SETIMAGELIST, (IntPtr)NativeMethods.LVSIL_SMALL, value == null ? IntPtr.Zero: value.Handle);
4028
SendMessage
(NativeMethods.LVM_SETIMAGELIST, (IntPtr) NativeMethods.LVSIL_NORMAL, handle);
5162
SendMessage
(NativeMethods.LVM_SETIMAGELIST, (IntPtr) NativeMethods.LVSIL_SMALL, handle);
5190
SendMessage
(NativeMethods.LVM_SETIMAGELIST, (IntPtr) NativeMethods.LVSIL_STATE, handle);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4999
m.Result = gridView.
SendMessage
(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1793
m.Result = ctl.
SendMessage
(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
720
SendMessage
(RichTextBoxConstants.EM_SETTARGETDEVICE, hDC, (IntPtr)Pixel2Twip(hDC, value, true));
winforms\Managed\System\WinForms\StatusBarPanel.cs (3)
213
this.parent.
SendMessage
(NativeMethods.SB_SETICON, (IntPtr)GetIndex(), handle);
649
this.parent.
SendMessage
(NativeMethods.SB_SETICON, (IntPtr)GetIndex(), this.icon.Handle);
652
this.parent.
SendMessage
(NativeMethods.SB_SETICON, (IntPtr)GetIndex(), IntPtr.Zero);
winforms\Managed\System\WinForms\TabControl.cs (1)
528
SendMessage
(NativeMethods.TCM_SETIMAGELIST, IntPtr.Zero, handle);