Re: DOCUMENTCOMPLETE doesn't fire, READYSTATE never completed

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 10/25/04


Date: Mon, 25 Oct 2004 12:44:01 -0400


"thade" <thade@gazeta.pl> wrote in message news:opsgfpsepxbphu5b@andrzej
> Dnia Mon, 25 Oct 2004 11:52:05 -0400, Igor Tandetnik
> <itandetnik@mvps.org> napisał:
>> You have to properly host WebBrowser control, which necessarily
>> involves creating a hosting window. This window can be hidden.
>> WebBrowser won't work if not properly hosted.
>
> WebBrowser control works without creating a hosting window. When I
> call Navigate, it sends and receives packets. I can even implement
> IOleControl.OnAmbientPropertyChange(DISPID_AMBIENT_DLCONTROL) and it
> works. But it doesn't create IHTMLDocument2.

Does not sound like it works all that well, then.

> In my humble opinion creating IHTMLDocument2 interface have nothing
> to do with creating a hosting window. To create IHTMLDocument2
> interface WebBrowser needs only HTML source of the site. Well, this
> is only my theory, but am I wrong?

I have already given you my opinion. You are welcome to take it, or
continue on your current path.

-- 
With best wishes,
    Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray, 
Mr. Babbage, if you put into the machine wrong figures, will the right 
answers come out?' I am not able to rightly apprehend the kind of 
confusion of ideas that could provoke such a question." -- Charles 
Babbage