drag and drop |
Post Reply |
Author | |
ContactGT
Newbie Joined: 30 October 2006 Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 14 November 2006 at 7:29am |
I don't know if this is an MFC problem, or a ToolkitPro problem... I'm trying to get drag and drop working between CXTPDockingPanes in my application. I have 4 panes: Pane 1 has a CXTPTabControl with a CTreeCtrl derived class on each tab I have added ON_NOTIFY_REFLECT(TVN_BEGINDRAG, OnTvnBegindrag) to my two CTreeView classes and ON_NOTIFY_REFLECT(LVN_BEGINDRAG, OnLvnBegindrag) to my two CListView classes, but only pane 1, 2 and 4 respond! The pane containing my CTreeCtrl class doesn't hit the OnLvnBeginDrag method. Question 1 - any idea why the pane containing just a CTreeCtrl class doesn't respond to a drag? In the 3 classes where the drag works, I create a COleDataSource and populate it, then call DROPEFFECT dropeffect = OleDataSource.DoDragDrop(DROPEFFECT_MOVE, NULL);. I have added OnDragEnter, OnDragOver and OnDrop methods on my 4 CTreeCtrl and CListCtrl classes, but none of them are hit. Question 2 - any idea why none of the pane contents are hitting their OnDragEnter, OnDragOver and OnDrop methods? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
If you use CXTTreeCtrl try to change it to standard CTreeCtrl.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ContactGT
Newbie Joined: 30 October 2006 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
All of my controls derive directly from the MFC classes:- Both of my tree controls derive from CTreeCtrl and both of my list controls derive from CListCtrl.
|
|
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 |