The TVN_DELETEITEM notification message notifies a tree-view control’s parent window that an item is being deleted. This notification message is sent in the form of a WM_NOTIFY message.
TVN_DELETEITEM pnmtv = (NM_TREEVIEW FAR *) lParam
No return value.
If the lParam member of the TV_ITEM structure points to memory allocated by your application, you can free it when you receive the TVN_DELETEITEM notification message.