So when ever the info on the Windows Clipboard changes, and this project is running, aform pops up with a listbox on it displaying line by line all clipboard formats currently available, but in integer form. Checking the Windows.pas file I found the constants for Clipboard formats, and I was able to verify that it was working correctly...for example when I would copy plain text to the clipboard the CF_TEXT constant would be enumerated, and for a bmp file, the CF_METAFILEPICT, CF_DIB, CF_ENHMETAFILE, CF_BITMAP, and CF_ENHMETAFILE were listed. But along with these obvious formats, there were also listed a number of 5 digit formats for which no constants can be found. Could these perhaps be specially registered formats that are used by such as Office applications, and/or other image editors, etc.?
Yes. Custom clipboard formats are assigned IDs between $c000 and $ffff.
And if they are, how can I find out exactly what they are
To get the name used to register those formats, call GetClipboardFormatName. That's all you can get from the OS, though. The only thing the OS knows about a clipboard format is the name and ID used to register it. Other than that, the format is dictated entirely by the applications that need to use it.
and if I would need to load back to the clipboard using these special formats if I want the registering applications to be able to make use of them?
I think you answered your own question. Do you honestly expect an application to be able to make use of the format if you *don't* load the information back onto the clipboard?
I also noticed that when I copied a jpg file to the clipboard, I got the same exact list of constant references as I did for the bmp file. Are all picture/image types represented on the clipboard as bmp's? And if so when pasted back into an application, how does it know it's a jpg at all?
How did you copy it?
In any case, the questions and request for help made in the first
message of this thread still goes.
There was in fact no question in the first message. Can you be a little more specific about what you're having trouble with? What have you tried, and how has it failed?
-- Rob
_______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

