|
Caching Additional Data Formats
When an IDataObject is dropped onto a file system folder, such as the desktop, the shell receives
the CLSID of the object and looks for the list of clipboard formats to be
cached in the scrap file. The list is located in the following registry location.
HKEY_CLASSES_ROOT\CLSID\{clsid}\DataFormats\PriorityCacheFormats
The clipboard formats should be added to the registry as the names of named
values (the value should be empty). The additional formats give the user more
choices when copying the scrap file and opening the Paste Special dialog box from
another application. You should choose only useful formats to keep the scrap
file from becoming too large. For example, WordPad scrap-caches the RTF format,
and MSPaint scrap-caches the CF_BITMAP format.
HKEY_CLASSES_ROOT\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats\PriorityCacheFormats,"#8",,""
HKEY_CLASSES_ROOT\CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DataFormats\PriorityCacheFormats,"Rich
Text Format",,""
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|