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