Waiting for synchronous IWebBrowser2 Navigate
- From: key88sf@xxxxxxxxx
- Date: Sat, 02 Jun 2007 17:51:35 -0700
Hello, I have an IWebBrowser2 control which my application uses to
*synchronously* navigate to a web page. I am using a modal PeekMessage-
based message pump to make the navigation synchronous, and it works
fine. My problem is:
If the user quits my application while the browser is navigating, I
set a cancel flag inside my browsing code, but how do I then "wait"
for the browser control to finish without deadlocking my program? For
example, in the OnDestroy() method of my main window, I set the cancel
flag, and then I want to wait for the browser to finish.
Any ideas on how to achieve this?
Thanks!
.
- Follow-Ups:
- Re: Waiting for synchronous IWebBrowser2 Navigate
- From: Igor Tandetnik
- Re: Waiting for synchronous IWebBrowser2 Navigate
- Prev by Date: Re: Problem with HTMLDocumentEvents on Gmail
- Next by Date: Still An APP?
- Previous by thread: Re: Problem with HTMLDocumentEvents on Gmail
- Next by thread: Re: Waiting for synchronous IWebBrowser2 Navigate
- Index(es):
Relevant Pages
|
|