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