🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by Serkan �zkan Wed, 21 Dec 2005 21:19
Getting to IWebBrowser2 from hwnd
#926
Author: Serkan �zkan
Date: Wed, 21 Dec 2005 21:19
11 lines
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
Re: Getting to IWebBrowser2 from hwnd
#927
Author: Remy Lebeau (TeamB)
Date: Wed, 21 Dec 2005 22:59
14 lines
1220 bytes
"Serkan �zkan" <serkan@insaat.org> wrote in message
news:43a9c692$1@newsgroups.borland.com...

> 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.

Have a look at the following article:

    How To Get IHTMLDocument2 from a HWND
    http://support.microsoft.com/default.aspx?scid=kb;en-us;249232


Gambit
Re: Getting to IWebBrowser2 from hwnd
#846
Author: Caleb
Date: Sat, 31 Dec 2005 02:12
24 lines
1496 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"Serkan �zkan" <serkan@insaat.org> wrote in message
>news:43a9c692$1@newsgroups.borland.com...
>
>> 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.
>
>Have a look at the following article:
>
>    How To Get IHTMLDocument2 from a HWND
>    http://support.microsoft.com/default.aspx?scid=kb;en-us;249232
>
>
>Gambit
>
>


Is an IWebBrowser2 interface the same as an MS Internet Explorer
window?

Caleb
Re: Getting to IWebBrowser2 from hwnd
#848
Author: Remy Lebeau (TeamB)
Date: Mon, 02 Jan 2006 23:11
13 lines
1473 bytes
"Caleb" <nospam@nospam.net> wrote in message 
news:43b5f722$1@newsgroups.borland.com...

> Is an IWebBrowser2 interface the same as an MS
> Internet Explorer window?

A window is a window.  An interface can represent the window, but it is not 
the window itself.  In this case, IWebBrowser2 represents the container that 
an IE window has for hosting the browser engine.


Gambit 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads