Print Page | Close Window

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=2200
Printed Date: 08 November 2025 at 1:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag and Drop
Posted By: jitu
Subject: Drag and Drop
Date Posted: 09 May 2005 at 7:56am

I am migrating to docking panes from Codejock and my view is a CTreeView. This view is attached to the pane. Now earlier when my Treeview was a view of my childwindow, the drag and drop support was there and now after attaching the treeview to my pane, the drag and drop functionality is not working. Ia ma not getting OnDragEnter or OnDragOver messages. Why is so?

Need assistance urgently. Thanks



-------------
Regards



Replies:
Posted By: Oleg
Date Posted: 09 May 2005 at 11:05am

I don't know how it worked before, but commonly to enable it you must

1. add COleDropTarget m_oleDropTarget; member for CYourView

2. call m_oleDropTarget.Register(this); in

int CYourView::OnCreate(LPCREATESTRUCT lpCreateStruct)



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


Posted By: jitu
Date Posted: 10 May 2005 at 2:01am

Thanks a lot.

The code for COleDropTarget was commented.
Sorry for the trouble.



-------------
Regards



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