开发者

TWebBrowser without parent window

开发者 https://www.devze.com 2023-03-10 00:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消