|
Data Handlers
When a file is dragged from the shell (or copied to the clipboard from the
shell), the shell creates a default IDataObject interface that supports standard clipboard formats (CF_HDROP, "Shell IDList
Array", and so on). An application can add more clipboard formats by providing a
data handler for the file type. A data handler must support both the IPersistFile and IDataObject interfaces. The shell initializes a data handler by calling the IPersistFile::Load member function. When a data handler is provided, the default IDataObject interface delegates some member function calls to the data handler so that
the additional clipboard data formats become available to the drop target.
You register a data handler by adding a DataHandler key and class identifier for the handler under the shellex key for the file type as shown in the following example.
shellex
DataHandler = {00000000-1111-2222-3333-00000000000003}
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
|