🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

MDI Child Float

#4670
From: saravanan
Date: Mon, 19 Dec 2005 12:24
42 lines
2437 bytes
Hi,

Requirement : I need to implement attach/detach windows for the application.
Attach mean displaying a window as child and Dettach meaning displaying the
window as seperate application(a icon in the task bar).  I should able to
toggle between attach and dettach at runtime.

Problem : When i change the formstyle from fsChild to fsNormal, Form Handle
is getting changed.  I need same handle because some other child window will
be posting the messages using this handle(Please don't ask me to use
Form->handle each time..).  I also have some of the third-party control
which uses postmessage that should not be affected due to this Form Style
Change.

I have seen a MFC application which does this.  I don't have the source code
but i can capture the events in SPY++. Will that help.

Complete List of conversion between me and JD is available in
borland.public.cppbuilder.vcl.components.using (Subject: MDI Child Float)

Regards,
Saravanan A

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43a08175@newsgroups.borland.com...
>
> "Saravanan" <asaravanan@ften.com> wrote in message
> news:43a01ea0@newsgroups.borland.com...
>
> >   I need a way to float MDI child window as normal Form(fsNormal)
> > and bring it back as MDI child window(fsMDIChild) whenever
> > required.  How to do this ?
>
> You can change the FormStyle property dynamically at runtime, but that is
> not advisable.
>
> What EXACTLY are you trying to accomplish in the first place?
>
>
> Gambit
>
>
Technical Details
Message-ID: <43a6a2a8@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.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6d2676bf1dd2e997,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "saravanan" <asaravanan@ften.com>
From: "saravanan" <asaravanan@ften.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: MDI Child Float
Date: Mon, 19 Dec 2005 17:54:27 +0530
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 203.199.207.189
Message-ID: <43a6a2a8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1134994088 203.199.207.189 (19 Dec 2005 04:08:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail