Modify records before drop |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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);
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |