mshtml w/o WebBrowser

From: Hockey (Hockey_at_discussions.microsoft.com)
Date: 08/14/04


Date: Sat, 14 Aug 2004 04:05:01 -0700

I'm interested in basically writting a MFC CHtmlView class but instead of
using IWebBrowser2 I would like to use IHtmlDocument2.

I don't need inplace linking and such and I just want a more compact control.

If I understand correctly, this is possible, i've already stripped CHtmlView
(my version) down to nothing, deriving it from CView instead of CFormView
like CHtmlView does.

The code ASSERT's deep inside the MFC source and as far as I can tell it is
caused by CLSID_HTMLDocument and it's associated IHTMLDocument interface
don't have an dispinterface???

Basically I have used the same code from CHtmlView, but stripped down and
instead of using IWebBrowser2 and CLSID_WebBrowser for params to
CoCreateInstance() I use IHtmlDocument. etc...

Is what I am trying to do even possible? I would like a light(er) weight
control of IWebBrowser2 and I think mshtml suitd me perfectly...

Thanks in advance



Relevant Pages

  • Re: Creating something like CHtmlView
    ... > Why not use CHTMLView itself? ... CHTMLView is a wrapper around ... > IWebBrowser2 control that is hosted in IE. ...
    (microsoft.public.vc.mfc)
  • Re: Wie kann man MFC-Klassen in Konsolenanwendungen einsetzen?
    ... >WaitForSingleObject auf ein Event den Programmablauf blockieren. ... IHTMLDocument, IHTMLDocument2, IWebBrowser2, überhaupt alles mit ... Das sind die Schnittstellen, die CHtmlView auch verwendet. ...
    (microsoft.public.de.vc)
  • Re: CHtlmView questions
    ... occur when the maps are viewed through a stand-alone browser. ... done some googling on CHtmlView. ... Both IE and CHTMLView use the same underlying control: IWebBrowser2. ... a Webbrowser forum and making it a IWebBrowser2 query(and not ...
    (microsoft.public.vc.mfc)
  • Re: CHtlmView questions
    ... occur when the maps are viewed through a stand-alone browser. ... done some googling on CHtmlView. ... Both IE and CHTMLView use the same underlying control: IWebBrowser2. ... a Webbrowser forum and making it a IWebBrowser2 query(and not ...
    (microsoft.public.vc.mfc)
  • Re: Searching inside a CHtmlView?
    ... Do you want to do the search yourself, or do you want CHtmlView to do it for ... This code will bring up the IWebBrowser2 find window. ... if (spTarget!= NULL) ...
    (microsoft.public.vc.mfc)