已经知道ImageList的句柄,如何根据句柄来释放它呢?

解决方案 »

  1.   

    public static IntPtr ListView_CreateDragImage(IntPtr hWnd, int nIndex, ref Point lpptUpLeft)
            {
                return SendMessage(hWnd, LVM_CREATEDRAGIMAGE, nIndex, ref lpptUpLeft);
            }      IntPtr dragImageList = DragHelper.ListView_CreateDragImage(listView2.Handle, lvi.Index, ref ptupleft);
                    if (dragImageList != null)
                        DragHelper.ImageList_Draw(dragImageList, 0, abc, rectSingle.Left - rectComplete.Left, rectSingle.Top - rectComplete.Top, 1);想释放dragImageList
      

  2.   

    代码怎么写?就知道句柄dragImageList