Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Modify records before drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Modify records before drop

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Modify records before drop
    Posted: 10 May 2008 at 1:11pm
I drag records from Report1 containing CBlackRecords and drop them into Report2 with CBlueRecords. Thus, before the drop I need to make a conversion.
 
Previously, I did this in OnBeforePaste(). Due to the design-change I cannot do that anymore. Any ideas?
 
I tried handling XTP_NM_REPORT_DROP, re-assigning the drop-records (and freeing the old ones) but this causes a crash at XTPReportControl.cpp(3982). I also tried removing all records and add the new ones, but I cannot figure out how to do this correctly. CXTPReportRecord::Move() does not suffice, it seems...
 
Bug? If there is no other way to accomplish the above, I believe you should change this: CMDTARGET_RELEASE(pDropRecords);
to this: CMDTARGET_RELEASE(nmData.pRecords);
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.125 seconds.