Print Page | Close Window

drag and drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=5514
Printed Date: 12 December 2024 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: drag and drop
Posted By: ContactGT
Subject: drag and drop
Date 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
Pane 2 has a CXTPTabControl with a CListCtrl derived class on each tab
Pane 3 contains just a CTreeCtrl derived class
Pane 4 containg just a CListCtrl derived class

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?




Replies:
Posted By: Oleg
Date Posted: 14 November 2006 at 7:48am
Hi,
If you use CXTTreeCtrl  try to change it to standard CTreeCtrl.


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


Posted By: ContactGT
Date Posted: 14 November 2006 at 8:51am

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.



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