CListCtrl::CreateDragImage

CImageList* CreateDragImage( int nItem, LPPOINT lpPoint );

Return Value

A pointer to the drag image list if successful; otherwise NULL.

Parameters

nItem

Index of the item whose drag image list is to be created.

lpPoint

Address of a POINT structure that receives the initial location of the upper-left corner of the image, in view coordinates.

Remarks

Call this function to create a drag image list for the item specified by nItem. The CImageList object is permanent, and you must delete it when finished. For example:

CImageList* pImageList = MyListCtrl.CreateDragImage(nItem, &point);
   ...
   ...
   delete pImageList;

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CImageList, CListCtrl::GetImageList