Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it possible to change MDIchild property runtime ???

7 views
Skip to first unread message

Mads Höffner

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
Is it possible to change the MDIchild property runtime. I've already tried,
but get an error msg.
I want the possiblity to change whether a windows shoud be in MDI child or a
seperate form. Does some kind of hack exist ???

Regards Mads Höffner

Jeff Ashley

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
I'm just guessing, but I would think when the Help says a property is 'Read only
at run time' that probably means something like it is read-only (at run-time) .
. .

And please don't cross-post to so many news groups . . .

dem

unread,
Jun 17, 1999, 3:00:00 AM6/17/99
to
hy

Leave the property to False and use the SetParent API
The code look something like this:

Private Sub xx_Click()
Static b As Boolean

If b Then
' MDI child
Call SetParent(Form1.hWnd, MDIForm1.hWnd)
Else
'On his own again (0 is the hWnd of the DeskTop)
Call SetParent(Form1.hWnd, 0)
End If
b = Not b
End Sub

just remember to set the parent of Form1 to 0 before closing the program

Rob

Mads Höffner <lae...@egmont-kol.dk> wrote in message
news:7k3cjj$1d3a$1...@news.net.uni-c.dk...

Luke Menezes

unread,
Jun 17, 1999, 3:00:00 AM6/17/99
to
I'm just curious about why is really necessary to set the Form1.Parent to 0
before closing the application. Why is it?

dem <g.b.re...@zap.a2000.nl> escreveu nas notícias de
mensagem:7k993b$ruk$1...@weber.a2000.nl...

0 new messages