다음을 통해 공유


SVsMainWindowDropTarget Interface

Definition

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.

public interface class SVsMainWindowDropTarget
public interface class SVsMainWindowDropTarget
__interface SVsMainWindowDropTarget
[System.Runtime.InteropServices.Guid("8ABE01DB-4CB1-4BE7-961F-D30B2EF6AEB1")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface SVsMainWindowDropTarget
[<System.Runtime.InteropServices.Guid("8ABE01DB-4CB1-4BE7-961F-D30B2EF6AEB1")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type SVsMainWindowDropTarget = interface
Public Interface SVsMainWindowDropTarget
Attributes

Remarks

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.

Applies to