Article View: borland.public.cppbuilder.internet.web
Article #926Getting to IWebBrowser2 from hwnd
From: Serkan �zkan
Date: Wed, 21 Dec 2005 21:19
Date: Wed, 21 Dec 2005 21:19
11 lines
1484 bytes
1484 bytes
Hi, I want to access a WebBrowser that is hosted in an application. To do this first I get HWND of the application using EnumWindows, and then find HWND of the WebBrowser by using EnumChildWindows, using the HWND of the application. But then I could not figure out how I can get a IWebBrowser2 interface and access its document using the hwnd which is all I've got. I want to access the document of the WebBrowser in the end, I can get to the document if I can get the webbrowser interface but I am stuck at getting the webbrowser interface. Thanks in advance
Technical Details
Message-ID:
<43a9c692$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,493ca2b3cbc3177,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Serkan �zkan" <serkan@insaat.org> Newsgroups: borland.public.cppbuilder.internet.web Subject: Getting to IWebBrowser2 from hwnd Date: Wed, 21 Dec 2005 23:19:44 +0200 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.214.24.51 Message-ID: <43a9c692$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135199890 81.214.24.51 (21 Dec 2005 13:18:10 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail