Re: IWebBrowser2 focus problem
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 10 Aug 2007 07:33:07 -0400
"Sue" <jean.shu@xxxxxxxxx> wrote in message
news:1186712421.090817.36290@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I create a modeless dialog and its child is a IWebBrowser2 window. I'm
developing a application to chat. The problem now is that if a user is
typing in one window and another window pop up since another person
ttry to chat with this person, the new window steal the focus.
WebBrowser would steal focus when a new page is loaded, as long as it's
UI-active. To make it inactive, query for IOleInPlaceObject and call
UIDeactivate. You may want to do it whenever your dialog becomes
inactive (e.g. in response to WM_ACTIVATE message).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- IWebBrowser2 focus problem
- From: Sue
- IWebBrowser2 focus problem
- Prev by Date: IWebBrowser2 focus problem
- Next by Date: Keeping a IHTMLElement pointer question?
- Previous by thread: IWebBrowser2 focus problem
- Next by thread: Keeping a IHTMLElement pointer question?
- Index(es):
Relevant Pages
|