ListView_CreateDragImage macro (commctrl.h)

Creates a drag image list for the specified item. You can use this macro or send the LVM_CREATEDRAGIMAGE message explicitly.

Syntax

void ListView_CreateDragImage(
   hwnd,
   i,
   lpptUpLeft
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

i

Type: int

The index of the item.

lpptUpLeft

Type: LPPOINT

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

Return value

None

Remarks

Your application is responsible for destroying the image list when it is no longer needed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h