Print Page | Close Window

Drag & Drop to CTreeCTrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22175
Printed Date: 15 November 2024 at 4:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag & Drop to CTreeCTrl
Posted By: hachem
Subject: Drag & Drop to CTreeCTrl
Date Posted: 18 January 2014 at 3:39pm
I'm trying to drag records from a CXTRPReportView (which includes a CXTPReportCtrl) to a tree dialog (CTreeCtrl).

My problem is how to process the records in the CTreeCtrl. I am using the class "CTreeDropTarget" developed by someone else, I have overridden the OnDrop() function, but I don't know how to obtain the records from the COleDataObject object.

Here is the function that I am processing:

BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point)
{

}

How can obtain the records being dragged from pDataObject?



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