TWebBrowser without parent window
I am trying to use TWebBrowser in Console/Service type of app开发者_StackOverflowlication (without any windows). Navigate is definitely doing something, but it never calls onDocumentComplete. Is there any other way to get access to IHTMLDocument2 of some URL?
Thank you.
Before using the TWebBrowser instance (e.g. with Navigate2), call its HandleNeeded method. This will allocate an 'invisible' parent window handle and straighten out any event issues.
精彩评论