![]() |
CXTTreeView - Drag and Drop |
Post Reply
|
| Author | |
denczek
Newbie
Joined: 06 August 2004 Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTTreeView - Drag and DropPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 January 2007 at 4:13pm |
|
Hello,
See in MSDN CView::OnDragOver, CView::OnDrop , COleDataSource::DoDragDrop
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
denczek
Newbie
Joined: 06 August 2004 Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
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...
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
denczek
Newbie
Joined: 06 August 2004 Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 January 2007 at 11:58am |
|
Excellent...
Thanks!
|
|
![]() |
|
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 |