This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
Posted by: Kushan Ratnayake (203.115.18.---)
Date: Friday, 15-Nov-2002, 09:29:56
I have following questions about HTMLEditor control.
1. Can it control script and activex execution ? Or does it run them at all.
(may be using DISPID_AMBIENT_DLCONTROL as for webbrowser)
2. What are the differences between MSHTML and Webbrowser when used as an editor?.
Re: Few questions
Posted by: Tim Anderson
Date: Friday, 15-Nov-2002, 09:57:02
If you look at the IDOCHOSTUIHANDLER implementation and the GetHostInfo method, you'll see that it has a DOCHOSTUIINFO parameter. You can set its dwFlags member to disable script, which is what Ive done in the HTML Editor, but of course you can change this. See MSDN, look up DOCHOSTUIFLAG.
As to the second question, the WebBrowser control hosts MSHTML; it is MSHTML that provides the editing features in both cases. However, hosting MSHTML directly gives you a lower level of access, particularly useful when it comes to features that are not available through script.