Expand Minimize

ListView_CreateDragImage macro

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 iItem,
  LPPOINT lpptUpLeft
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

iItem

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

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft