There is another way to load MSHTML documents without use Application.ProcessMessages?

Posted by douglaslise on Stack Overflow See other posts from Stack Overflow or by douglaslise
Published on 2010-04-09T18:11:45Z Indexed on 2010/04/09 22:23 UTC
Read the original article Hit count: 461

Filed under:
|

There is another way to load MSHTML documents without use Application.ProcessMessages?

To load a document into a IHTMLDocument I need to do this:

while Doc.readyState <> 'complete' do 
   Application.ProcessMessages;

I want not to process all the message queue during the loading, because I would be changing my application flow, in other words, some messages that should be processed after the loading to be completed can be processed earlier, even before the loading end.

There is a special message code that the IHTMLDocument expect to advance in the loading process? Or there is another way to load?

Thanks.

© Stack Overflow or respective owner

Related posts about mshtml

Related posts about delphi