NMTREEVIEWW structure (commctrl.h)

Contains information about a tree-view notification message. This structure is identical to the NM_TREEVIEW structure, but it has been renamed to follow current naming conventions.

Syntax

typedef struct tagNMTREEVIEWW {
  NMHDR   hdr;
  UINT    action;
  TVITEMW itemOld;
  TVITEMW itemNew;
  POINT   ptDrag;
} NMTREEVIEWW, *LPNMTREEVIEWW;

Members

hdr

Type: NMHDR

NMHDR structure that contains information about this notification message.

action

Type: UINT

Notification-specific action flag. This member is used with the following notification codes.

For the possible action flag values, see TVM_EXPAND and TVN_SELCHANGED.

itemOld

Type: TVITEM

TVITEM structure that contains information about the old item state. This member is zero for notification messages that do not use it.

itemNew

Type: TVITEM

TVITEM structure that contains information about the new item state. This member is zero for notification messages that do not use it.

ptDrag

Type: POINT

POINT structure that contains the client coordinates of the mouse at the time the event occurred that caused the notification message to be sent.

Remarks

Note

The commctrl.h header defines NMTREEVIEW as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

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

See also

WM_NOTIFY