Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CListCtrl::CreateDragImage
Collapse the table of content
Expand the table of content

CListCtrl::CreateDragImage 

Creates a drag image list for the item specified by nItem.


CImageList* CreateDragImage(
   int nItem,
   LPPOINT lpPoint 
);

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.

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

The CImageList object is permanent, and you must delete it when finished. For example:

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

Community Additions

ADD
Show:
© 2015 Microsoft