NMTVITEMCHANGE structure (commctrl.h)

Contains information on a tree-view item change. This structure is sent with the TVN_ITEMCHANGED and TVN_ITEMCHANGING notifications.

Syntax

typedef struct tagTVITEMCHANGE {
  NMHDR     hdr;
  UINT      uChanged;
  HTREEITEM hItem;
  UINT      uStateNew;
  UINT      uStateOld;
  LPARAM    lParam;
} NMTVITEMCHANGE;

Members

hdr

Type: NMHDR

NMHDR structure that contains information about the notification.

uChanged

Type: UINT

Specifies the attribute. The only supported attribute is state. uChanged must have the following value:

Value Meaning
TVIF_STATE
The change is the state attribute.

hItem

Type: HTREEITEM

Handle to the changed tree-view item.

uStateNew

Type: UINT

Flag that specifies the new item state.

uStateOld

Type: UINT

Flag that specifies the item's previous state.

lParam

Type: LPARAM

Reserved for application specific data. For example, a value to associate with the item.

Requirements

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