Print Page | Close Window

CXTTreeCtrl, TVN_DELETEITEM?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=560
Printed Date: 23 December 2024 at 1:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeCtrl, TVN_DELETEITEM?
Posted By: Feeblez
Subject: CXTTreeCtrl, TVN_DELETEITEM?
Date Posted: 24 March 2004 at 10:50am

i'm using CXTTreeCtrl, and have associated data with each item in the tree using TVITEM.lParam to store the data pointer.

the data is allocated so when an item is deleted i want to free the associated data.

only trouble is i'm not recieving a TVN_DELETEITEM WM_NOTIFY message.

i've tried the following in my message map:
ON_NOTIFY( TVN_DELETEITEM, IDC_TREE_DOCUMENT, OnDeleteItem )ON_NOTIFY_REFLECT( TVN_DELETEITEM, OnDeleteItem )

but no joy with OnDeleteItem getting called, so i'm stuck how to free my data up.

any help is apprecited...




Replies:
Posted By: Feeblez
Date Posted: 24 March 2004 at 12:01pm
it's ok, i've figured it out now



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net