ListView_CreateDragImage  G7ZKH3 

The ListView_CreateDragImage macro creates a drag image list for the specified item. You can use this macro or explicitly send the LVM_CREATEDRAGIMAGE2_FJC0 message.

HIMAGELIST ListView_CreateDragImage(

    HWND hwnd,

 

    int iItem,

 

    LPPOINT lpptUpLeft

 

   );

 

 

Parameters

hwnd

Handle to the list view control.

iItem

Index of the item.

lpptUpLeft

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

 

Return Values

Returns the handle to the drag image list if successful or NULL otherwise.

See Also

LVM_CREATEDRAGIMAGE, POINT