🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4849

Re: Opening up Web Browsers inside my App

#4849
From: Alistair
Date: Fri, 18 Nov 2005 18:20
20 lines
1787 bytes
Alan Bellingham wrote:
> Alistair <NoSpamPlease@Somewhere.Com> wrote:
> 
>> SetParent(BrowserWindow, ParentWindow);
>>
>> SetWindowPos(BrowserWindow, HWND_TOP, 0, -23, Width, Height, 
>> SWP_SHOWWINDOW);
> 
> A magic number? What is -23 for? Is it a value that should come from the
> system metrics call?
> 
> Alan Bellingham

Nope, its just the Y position.  0, -23 = X, Y position of the window 
within the parent window, i chose that value purely at random no reason.

Enter whatever X, Y position you need within your parent window.

Cheers,
Alistair
Technical Details
Message-ID: <437e1b22$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c5d8e$1@newsgroups.borland.com> <42a2f6aa$1@newsgroups.borland.com> <437d1366@newsgroups.borland.com> <0c9qn19nvm8s0mn6si19bh9lfde1tq7b76@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91b603800ded4d32
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 18 Nov 2005 18:20:13 +0000
From: Alistair <NoSpamPlease@Somewhere.Com>
User-Agent: Thunderbird 1.4 (Windows/20050908)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Opening up Web Browsers inside my App
References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com> <422c5d8e$1@newsgroups.borland.com> <42a2f6aa$1@newsgroups.borland.com> <437d1366@newsgroups.borland.com> <0c9qn19nvm8s0mn6si19bh9lfde1tq7b76@4ax.com>
In-Reply-To: <0c9qn19nvm8s0mn6si19bh9lfde1tq7b76@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.9.168.147
Message-ID: <437e1b22$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132337954 84.9.168.147 (18 Nov 2005 10:19:14 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail