Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTShellTreeBase::OnDeleteTreeItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTShellTreeBase::OnDeleteTreeItem

 Post Reply Post Reply
Author
Message
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post Topic: CXTShellTreeBase::OnDeleteTreeItem
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.033 seconds.