Article View: borland.public.cppbuilder.nativeapi
Article #7146Re: Opening up Web Browsers inside my App
From: Gav
Date: Mon, 07 Mar 2005 23:29
Date: Mon, 07 Mar 2005 23:29
39 lines
2206 bytes
2206 bytes
"Hans Galema" <notused@notused.nl> wrote in message
news:422c7e08$1@newsgroups.borland.com...
> Have a look at:
>
> Newsgroups: borland.public.cppbuilder.vcl.components.using
> Subject: Docking two forms of two seperate application..
> Date: Tue, 8 Mar 2005 01:08:24 +1100
> Message-ID: <422c640a$1@newsgroups.borland.com>
>
> Hans.
Thanks Hans, I had a look and :-
AnsiString TheCaption = text in the titlebar of the other window;
HWND hWnd = FindWindow(0, TheCaption.c_str() );
if ( hWnd)
{
::SetParent ( hWnd, Panel1->Handle );
}
else ShowMessage( TheCaption + "\n\nnot found");
Works fine, but only if I know the exact title text of the window.
Being web pages that open up in IE, Opera, Netscape, Mozilla etc
then I think I am going to have difficulty knowing the title text as it
is set by the web designer and could be anything.
Is there a way to open the web page in the chosen browser, read in the
title text of its window and then put it into the form?
Thanks for your help, this is the furthest I have got in a long time
and feel there is not much more to go now to get this right.
:)
Gav...
Technical Details
Message-ID:
<422ce3f2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c7e08$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91b603800ded4d32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Gav" <brightoncomputers@brightontown.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c7e08$1@newsgroups.borland.com> Subject: Re: Opening up Web Browsers inside my App Date: Tue, 8 Mar 2005 07:29:26 +0800 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 203.121.204.130 Message-ID: <422ce3f2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110238194 203.121.204.130 (7 Mar 2005 15:29:54 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail