Print Page | Close Window

CXTShellTreeBase::OnDeleteTreeItem

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=6259
Printed Date: 12 November 2025 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTShellTreeBase::OnDeleteTreeItem
Posted By: novastor
Subject: CXTShellTreeBase::OnDeleteTreeItem
Date Posted: 29 January 2007 at 6:17pm
Hello,
 
We are using XtremeToolkitPro library. We currently upgraded from 9.81 to 10.3.1, I noticed that a new function is added:

In xtshelltreebase.coo: CXTShellTreeBase::OnDeleteTreeItem.

It is giving us a crash at this particular position. I noted that inside this function you are assuming that lParam to be

XT_TVITEMDATA* lptvid, where as we are using it for our internal purposes. Is there a way to avoid this function being called when I call DeleteAllItems.

Kindly help,
Regards,
Sachin Modak.



Replies:
Posted By: Oleg
Date Posted: 30 January 2007 at 2:31am
Hi,
I don't believe that in 9.81 you use lParam and it worked. All code of CXTShellTreeBase assumes that lParam is XT_TVITEMDATA
For example check OnFolderExpanding - how it will work if lParam not XT_TVITEMDATA.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: novastor
Date Posted: 30 January 2007 at 12:45pm

We have not changed that part of code which you are referring to. My question is more of a wonder as to what would happen if you add that particular message map inside CXTShellTreeBase::OnDeleteTreeItem(). I compared the CXTShellTreeBase classes from 9.8.1 and 10.3.1 and figured that you added a new handler or was it moved from some other class? This part of code has definately changed file:  

"c:\program files\codejock software\mfc\xtreme toolkitpro v10.3.1\source\controls\xtshelltreebase.cpp"
 
In the mean time I am looking at OnFolderExpanding. BTW this happens when i call

m_treeItms.DeleteAllItems(); in our code.

Thanks.



Posted By: novastor
Date Posted: 30 January 2007 at 1:29pm
I observed that in OnItemExpanding for our tree, we have overridden your message handler. I did the same for OnDeletetreeItem and that fixed the problem.
Thanks.
Sachin Modak.



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