M>мечтающе...
M>а вот ещё б при удалении итемов вызывалась бы некая функция с параметром TVITEM.lParam для удаления. эх!
так ведь есть такое
см. MSDN
TVN_DELETEITEM Notification
--------------------------------------------------------------------------------
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.
Remarks
If the lParam member of the TVITEM structure points to memory allocated by your application, you can free it when you receive the TVN_DELETEITEM notification message.