Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTreeView - Drag and Drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTreeView - Drag and Drop

 Post Reply Post Reply
Author
Message
denczek View Drop Down
Newbie
Newbie


Joined: 06 August 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote denczek Quote  Post ReplyReply Direct Link To This Post Topic: CXTTreeView - Drag and Drop
    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
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: 02 January 2007 at 4:13pm
Hello,
 
See in MSDN CView::OnDragOver, CView::OnDrop , COleDataSource::DoDragDrop
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
denczek View Drop Down
Newbie
Newbie


Joined: 06 August 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote denczek Quote  Post ReplyReply Direct Link To This Post 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...
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: 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
Back to Top
denczek View Drop Down
Newbie
Newbie


Joined: 06 August 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote denczek Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2007 at 11:58am
Excellent...
 
Thanks!
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.046 seconds.