Information générale
Catégorie:
Fonctions Windows API
>>Can one of our API gurus please show me how to copy a file reference to the Windows clipboard (and also access a file reference on the windows clipboard) so that I can copy/paste files or file references (names) between my VFP app and Windows Explorer. I have not been able to find a way to do this, although the OLE drag-and-drop capabilities of VFP make it relatively simple to drag-drop files. We all know there are times when desktop clutter makes it more convenenient to copy-paste. Help!... and thanks!
>
>Microsoft includes several free tools in a package called PowerToys. One of the tools adds the two options to the "Send To" menu: "Copy to Clipboard as Name", "Copy to Clipboard as Contents". "Copy to Clipboard as Name" will copy path+filename of the selected file to the clipboard.
>
>Hilmar.
Hilmar, thank you, but copying the name to the clipboard as a text item (CF_TEXT format) does not solve the problem. I need to be able to put an object of type CF_FILES onto the windows clipboard (for doing a copy function) and access such objects on the windows clipboard (for doing a paste function), just like you can do with getdata/setdata when using OLE drag-and-drop. Putting a text object on the clipboard that happens to be a file name is not sufficient.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement