![]() |
CXTShellTreeBase::OnDeleteTreeItem |
Post Reply
|
| Author | |
novastor
Groupie
Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTShellTreeBase::OnDeleteTreeItemPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
novastor
Groupie
Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
novastor
Groupie
Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |