IHTMLEditHost2 interface
Extends IHTMLEditHost with a method that enables you to intercept drag-and-drop operations at a stage earlier than the HTMLFrameSiteEvents::ondragstart event.
Members
The IHTMLEditHost2 interface inherits from IHTMLEditHost. IHTMLEditHost2 also has these types of members:
- Methods
Methods
The IHTMLEditHost2 interface has these methods.
Method | Description |
---|---|
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. |
Remarks
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.
Requirements
Minimum supported client |
Windows XP, Windows 2000 Professional |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |