Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Drag & Drop to CTreeCTrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag & Drop to CTreeCTrl

 Post Reply Post Reply
Author
Message
hachem View Drop Down
Groupie
Groupie


Joined: 02 May 2008
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote hachem Quote  Post ReplyReply Direct Link To This Post Topic: Drag & Drop to CTreeCTrl
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.164 seconds.