SAMPLE: FILEDRAG: How to Support File Drag Server CapabilitiesLast reviewed: April 30, 1997Article ID: Q139067 |
4.00
WINDOWS
kbole kbfile kbhowto
The information in this article applies to:
SUMMARYSample code is available that shows how an application can provide the File Drag drop server capabilities. It shows how to set up the data structures for CF_HDROP and ShellIDList formats. In this sample, the user can enable support for any combination of CF_HDROP and ShellIDList format and see the drag drop result. To obtain this sample: Download FILEDRAG.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
MORE INFORMATIONIn Windows 3.x, the only application that could act as a File Drag-Drop server was File Manager. Now the file drag-drop server capability is extended to all applications via OLE Drag Drop. An OLE drag-drop server application that supports the CF_HDROP format can support file drag drop as does File Manager. The Windows system generates the appropriate WM_DROPFILES message for client applications that support File Drop, or the Windows system passes the IDataObject if the client application supports OLE Drop target for CF_HDROP format. One of the new features of the shell is when you drop files on an icon on the desktop. The Shell opens the particular application with the drop file in it provided the application supports command line arguments where file can be passed as in this example:
notepad.exe myfile.txtThis feature could also be provided by a file drag drop server that supports the ShellIDList format, in addition to the CF_HDROP format.
|
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |