Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to roll back a Drag and Drop operation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to roll back a Drag and Drop operation

 Post Reply Post Reply
Author
Message
Rat View Drop Down
Newbie
Newbie


Joined: 09 November 2011
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rat Quote  Post ReplyReply Direct Link To This Post Topic: How to roll back a Drag and Drop operation
    Posted: 24 November 2011 at 4:57am
I drag one item from ReportControl A and drop it to ReportControl B.
If the item doesn't match, a 'Yes/No' messageBox will be shown to ask whether the drag and drop operation will continue.
If the user choose continue the operation, the drag and drop operation will be finished.
If the user choose stop the operation, the items of control A and control B should keep the old status.
 
Now, I put above operation in OnReportDrop() method. When the user choose 'No', I wrote 'return;'.
And I forbid the other operation in  OnReportDragDropCompleted() method.

But the item still disappear in control A and appear in control B.

So,How to roll back a drag and drop operation?

Thanks very much.

 
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.141 seconds.