Expand Minimize

SVsMainWindowDropTarget Interface

This service implements the IDropTarget interface. It is the drag/drop handler for the main window of the IDE. This drag/drop handler handles the CF_HDROP format that is used to drag files from the file system (Windows Explorer) and other sources that offer files. All windows that do not otherwise register for drag/drop (::RegisterDragDrop) will inherit this handler for free. Those that register for drag/drop itself will not inherit this file opening.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

[InterfaceTypeAttribute()]
[GuidAttribute("8ABE01DB-4CB1-4BE7-961F-D30B2EF6AEB1")]
public interface SVsMainWindowDropTarget

Any window that registers for drag/drop itself but still wants to inherit the default handling for CF_HDROP must QueryService for this object and explicitly delegate to it in its implementation of IDropTarget. For example, the standard Text Editor allows the user to open files by dragging to the Text Editor View. It prioritizes handling CF_HDROP over CF_TEXT or any other format.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft