NM_LISTVIEW

The NM_LISTVIEW structure contains information about a list view notification message.

typedef struct tagNM_LISTVIEW {

NMHDR hdr;

int iItem;

int iSubItem;

UINT uNewState;

UINT uOldState;

UINT uChanged;

POINT ptAction;

LPARAM lParam;

} NM_LISTVIEW;

Members

hdr

Specifies an NMHDR structure. The code member of the NMHDR structure can one of the following notification codes that identify the message being sent: LVN_BEGINDRAG, LVN_BEGINRDRAG, LVN_COLUMNCLICK, LVN_DELETEALLITEMS, LVN_DELETEITEM, LVN_INSERTITEM, LVN_ITEMCHANGED, or LVN_ITEMCHANGING.

iItem

Identifies the list view item, or -1 if not used.

iSubItem

Identifies the subitem, or zero if none.

uNewState

Specifies the new item state. This member is zero for notification messages that do not use it.

uOldState

Specifies the old item state. This member is zero for notification messages that do not use it.

uChanged

A set of bit flags that indicate the item attributes that have changed. This member is zero for notifications that do not use it. Otherwise, it can have the same values as the mask member of the LV_ITEM structure.

ptAction

Specifies a POINT structure that indicates the location at which the event occurred. This member is valid only for the LVN_BEGINDRAG and LVN_BEGINRDRAG notification messages.

Remarks

The address of the NM_LISTVIEW structure is specified as the lParam parameter of the WM_NOTIFY message for several list view notification messages.

See Also

LV_ITEM, LVN_BEGINDRAG, LVN_BEGINRDRAG, LVN_COLUMNCLICK, LVN_DELETEALLITEMS, LVN_DELETEITEM, LVN_INSERTITEM, LVN_ITEMCHANGED, LVN_ITEMCHANGING, WM_NOTIFY