36 references to Handle
System.Windows.Forms (36)
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
736SafeNativeMethods.ImageList_Draw(new HandleRef(imagelist, imagelist.Handle), imageIndex, new HandleRef(null, dc),
winforms\Managed\System\WinForms\ImageList.cs (11)
483int index = SafeNativeMethods.ImageList_ReplaceIcon(new HandleRef(this, Handle), -1, new HandleRef(icon, icon.Handle)); 499int index = SafeNativeMethods.ImageList_Add(new HandleRef(this, Handle), new HandleRef(null, hBitmap), new HandleRef(null, hMask)); 550if (Handle == IntPtr.Zero) throw new InvalidOperationException(SR.GetString(SR.ImageListCreateFailed)); 551SafeNativeMethods.ImageList_SetBkColor(new HandleRef(this, Handle), NativeMethods.CLR_NONE); 630SafeNativeMethods.ImageList_DrawEx(new HandleRef(this, Handle), index, new HandleRef(g, dc), x, y, 708if(SafeNativeMethods.ImageList_GetImageInfo(new HandleRef(this, this.Handle), index, imageInfo)) { 751SafeNativeMethods.ImageList_DrawEx(new HandleRef(this, Handle), index, new HandleRef(graphics, dc), 0, 0, 1073return SafeNativeMethods.ImageList_GetImageCount(new HandleRef(owner, owner.Handle)); 1171bool ok = SafeNativeMethods.ImageList_Replace(new HandleRef(owner, owner.Handle), index, new HandleRef(null, hBitmap), new HandleRef(null, hMask)); 1424SafeNativeMethods.ImageList_Remove(new HandleRef(owner, owner.Handle), -1); 1580bool ok = SafeNativeMethods.ImageList_Remove(new HandleRef(owner, owner.Handle), index);
winforms\Managed\System\WinForms\ImageListStreamer.cs (1)
217handle = imageList.Handle;
winforms\Managed\System\WinForms\ListView.cs (11)
590SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, imageListState.Handle); 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); 1551SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, value == null ? IntPtr.Zero: value.Handle); 1586SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, (imageListState == null || imageListState.Images.Count == 0) ? IntPtr.Zero : imageListState.Handle); 4027IntPtr handle = (LargeImageList == null) ? IntPtr.Zero : LargeImageList.Handle; 4652SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_NORMAL, imageListLarge.Handle); 4655SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_SMALL, imageListSmall.Handle); 4658SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, imageListState.Handle); 5161IntPtr handle = (SmallImageList == null) ? IntPtr.Zero : SmallImageList.Handle; 5188handle = imageListState.Handle;
winforms\Managed\System\WinForms\TabControl.cs (3)
526IntPtr handle = (value != null) ? value.Handle : IntPtr.Zero; 1265SendMessage(NativeMethods.TCM_SETIMAGELIST, 0, ImageList.Handle); 1355SendMessage(NativeMethods.TCM_SETIMAGELIST, 0, imageList.Handle);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1300SendMessage(NativeMethods.TB_SETIMAGELIST, 0, imageList.Handle);
winforms\Managed\System\WinForms\TreeView.cs (8)
648value==null? IntPtr.Zero: value.Handle); 650SetStateImageList(internalStateImageList.Handle); 1844IntPtr handle = (ImageList == null) ? IntPtr.Zero : ImageList.Handle; 1875handle = internalStateImageList.Handle; 1911SetStateImageList(internalStateImageList.Handle); 2018SendMessage(NativeMethods.TVM_SETIMAGELIST, 0, imageList.Handle); 2081SendMessage(NativeMethods.TVM_SETIMAGELIST, NativeMethods.TVSIL_STATE, newImageList.Handle); 2628SetStateImageList(internalStateImageList.Handle);