Print Page | Close Window

CXTTreeView - Drag and Drop

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=5964
Printed Date: 01 October 2025 at 7:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTreeView - Drag and Drop
Posted By: denczek
Subject: CXTTreeView - Drag and Drop
Date Posted: 02 January 2007 at 2:03pm

We have an application that still uses the Xtreme Toolkit 4.1 as we have not had the time to integrate the new toolkit yet.

We need to support drag and drop between 2 seperate CXTTreeView classes.  Is there an example somewhere on how to achieve this?
 
Any help is greatly appreciated.
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 02 January 2007 at 4:13pm
Hello,
 
See in MSDN CView::OnDragOver, CView::OnDrop , COleDataSource::DoDragDrop


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


Posted By: denczek
Date Posted: 02 January 2007 at 5:33pm
I did override the 4 methods from the CView base class, but the methods are not being called.  Essentially, there are 2 CXTTreeView windows, each within it's own detachable pane.  Is there something special that needs to be done to enable the drag/drop functionality?  Out of curiousity, is there any sample code I can obtain?  I've done drag/drop in ATL, but not within MFC.  Are there some tree view notifications that need to be handled on in the destination tree view?
 
Thanks again...


Posted By: Oleg
Date Posted: 03 January 2007 at 1:37am
Hi,
Yes, also needs to add COleDropTarget member to view, and call COleDropTarget::Register method.


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


Posted By: denczek
Date Posted: 03 January 2007 at 11:58am
Excellent...
 
Thanks!



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