31 references to SendMessage
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ComboBox.cs (1)
3260
SendMessage
(NativeMethods.CB_SETEDITSEL, 0, NativeMethods.Util.MAKELPARAM(start, end));
winforms\Managed\System\WinForms\Form.cs (2)
6819
SendMessage
(NativeMethods.WM_SETICON,NativeMethods.ICON_SMALL,smallIcon.Handle);
6821
SendMessage
(NativeMethods.WM_SETICON,NativeMethods.ICON_BIG,icon.Handle);
winforms\Managed\System\WinForms\ListView.cs (12)
590
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, imageListState.Handle);
592
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero);
1551
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, value == null ? IntPtr.Zero: value.Handle);
1571
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero);
1586
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, (imageListState == null || imageListState.Images.Count == 0) ? IntPtr.Zero : imageListState.Handle);
4652
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_NORMAL, imageListLarge.Handle);
4655
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_SMALL, imageListSmall.Handle);
4658
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, imageListState.Handle);
4952
SendMessage
(NativeMethods.LVM_SETCOLUMNWIDTH, columnIndex, NativeMethods.Util.MAKELPARAM(width, 0));
4960
SendMessage
(NativeMethods.LVM_SETCOLUMNWIDTH, columnIndex, NativeMethods.Util.MAKELPARAM(newWidth, 0));
4967
SendMessage
(NativeMethods.LVM_SETCOLUMNWIDTH, index, NativeMethods.Util.MAKELPARAM(width,0));
5801
SendMessage
(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero);
winforms\Managed\System\WinForms\StatusBar.cs (1)
603
SendMessage
(NativeMethods.SB_SETICON, 0, IntPtr.Zero);
winforms\Managed\System\WinForms\TabControl.cs (3)
1265
SendMessage
(NativeMethods.TCM_SETIMAGELIST, 0, ImageList.Handle);
1348
SendMessage
(NativeMethods.TCM_SETPADDING, 0, NativeMethods.Util.MAKELPARAM(padding.X, padding.Y));
1355
SendMessage
(NativeMethods.TCM_SETIMAGELIST, 0, imageList.Handle);
winforms\Managed\System\WinForms\ToolBar.cs (3)
1300
SendMessage
(NativeMethods.TB_SETIMAGELIST, 0, imageList.Handle);
1386
SendMessage
(NativeMethods.TB_ADDBUTTONS, count, ptbbuttons);
1440
SendMessage
(NativeMethods.TB_SETBUTTONSIZE, 0, NativeMethods.Util.MAKELPARAM((int)(buttonSize.Width*currentScaleDX), (int)(buttonSize.Height*currentScaleDY)));
winforms\Managed\System\WinForms\TreeView.cs (9)
647
SendMessage
(NativeMethods.TVM_SETIMAGELIST, 0,
1144
SendMessage
(NativeMethods.TVM_SELECTITEM, NativeMethods.TVGN_CARET, hnode);
1348
SendMessage
(NativeMethods.TVM_SELECTITEM, NativeMethods.TVGN_FIRSTVISIBLE, hnode);
1845
SendMessage
(NativeMethods.TVM_SETIMAGELIST, 0, handle);
2018
SendMessage
(NativeMethods.TVM_SETIMAGELIST, 0, imageList.Handle);
2081
SendMessage
(NativeMethods.TVM_SETIMAGELIST, NativeMethods.TVSIL_STATE, newImageList.Handle);
2095
IntPtr handleOld =
SendMessage
(NativeMethods.TVM_SETIMAGELIST, NativeMethods.TVSIL_STATE, handle);
2106
IntPtr handle =
SendMessage
(NativeMethods.TVM_GETIMAGELIST, NativeMethods.TVSIL_STATE, IntPtr.Zero);
2112
SendMessage
(NativeMethods.TVM_SETIMAGELIST, NativeMethods.TVSIL_STATE, IntPtr.Zero);