PreDrag Called by MSHTML before an ondragstart event fires on a selected element in the editor, and before the element is cloned prior to a drag-and-drop operation.
See IHTMLEditHost2::PreDrag for a discussion of the specific scenarios that this interface is designed to handle.
IHTMLEditHost2 can be used only on applications hosting the WebBrowser control or MSHTML. When the MSHTML Editor interface is initialized, it automatically calls IServiceProvider::QueryService on the host application to find an IHTMLEditHost2 interface, if there is one. To implement IHTMLEditHost2, you must also implement an IServiceProvider interface on the object hosting the WebBrowser control or MSHTML to provide a pointer to your IHTMLEditHost2 interface. MSHTML calls the IHTMLEditHost2::PreDrag method whenever the user drags an element in the editor.
When you implement IServiceProvider::QueryService, use the SID_SHTMLEditHost service ID and the IID_IHTMLEditHost2 interface ID to identify your IHTMLEditHost2 implementation. These IDs are both defined in Mshtml.h.
Stock Implementation mshtml.dll Custom Implementation Yes Inherits from IHTMLEditHost Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 6.0 Minimum operating systems Millennium, Windows 2000, Windows CE 4.0