NMLISTVIEW structure

Contains information about a list-view notification message. This structure is the same as the NM_LISTVIEW structure but has been renamed to fit standard naming conventions.

Syntax

typedef struct tagNMLISTVIEW {
  NMHDR  hdr;
  int    iItem;
  int    iSubItem;
  UINT   uNewState;
  UINT   uOldState;
  UINT   uChanged;
  POINT  ptAction;
  LPARAM lParam;
} NMLISTVIEW, *LPNMLISTVIEW;

Members

        `hdr`

        Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/richedit/ns-richedit-nmhdr">NMHDR</a></b>

NMHDR structure that contains information about this notification message.

        `iItem`

        Type: <b>int</b>

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

        `iSubItem`

        Type: <b>int</b>

Identifies the subitem, or zero if none.

        `uNewState`

        Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b>

New item state. This member is zero for notification messages that do not use it. For a list of possible values, see List-View Item States.

        `uOldState`

        Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b>

Old item state. This member is zero for notification messages that do not use it. For a list of possible values, see List-View Item States.

        `uChanged`

        Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b>

Set of 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 LVITEM structure.

        `ptAction`

        Type: <b><a href="https://docs.microsoft.com/previous-versions/dd162805(v=vs.85)">POINT</a></b>

POINT structure that indicates the location at which the event occurred. This member is undefined for notification messages that do not use it.

        `lParam`

        Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LPARAM</a></b>

Application-defined value of the item. This member is undefined for notification messages that do not use it.

Requirements

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