Export (0) Print
Expand All
MFC
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

CListCtrl::CreateDragImage

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

CImageList* CreateDragImage( 
   int nItem, 
   LPPOINT lpPoint  
);
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 = m_myListCtrl.CreateDragImage(nItem, &point);

// do something 

delete pImageList;

Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.