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
HIMAGELIST ListView_CreateDragImage(
HWND hwnd,
int i,
LPPOINT 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
Type: HIMAGELIST
Returns the handle to the drag image list if successful, or NULL otherwise.
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 |