Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cut operation with COleDataSource/COleDataObject

Status
Not open for further replies.

burgdavid

Programmer
Jun 22, 2000
70
DE
I try to make copy-cut-paste operations on files through an own designed file explorer with drag'n'drop compatible with the file explorer of Windows. For the copy, it work fine by simply using again the source code written for drag'n'drop which create a COleDataSource. I only had to add :<br><br>pSource-&gt;SetClipboard();<br><br>Where pSource is a pointer to the COleDataSource.<br><br>For paste, it works only &quot;a half&quot;. In fact, I paste the files but if the user previously make a cut operation in the windows explorer, the file are copy but not moved. Pasting method is the same as dropping with the control key pressed.<br><br>For cut, well, I don't know how to say &quot;this is a cut operation, not a copy&quot;, so I make the same as for the copy...<br><br>My problem is that for the drag'n'drop operation, we know if we should make a copy or a paste looking to the keys which are pressed (control and shift). But for cut and paste, I suppose there is a field of the Ole object which indicate what operation to do but I can't find it.<br><br><br>Somebody can help me ?<br><br>Thanks,<br><br>David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top