I don't think that would work.  The parent of an MDI child is not the MDI
form, but rather the MDI frame.  The MDI frame is owned by the MDI Form and
by default sits on the client area.

----- Original Message -----
From: "Stacey Verner" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 10:26 AM
Subject: RE: [DUG] Creating a MDI Child to a non Delphi MDI Parent


> Make its parent the MDI form.
>
> If you only have the handle use SetParent
>
> HWND SetParent
> (
>   HWND hWndChild, // handle of window whose parent is changing
>   HWND hWndNewParent // handle of new parent window
> );
>
> Stacey
>
> > -----Original Message-----
> > From: Neven MacEwan [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 30 January 2004 9:45
> > To: DUG
> > Subject: [DUG] Creating a MDI Child to a non Delphi MDI Parent
> >
> >
> > Hi
> >
> > I'm creating a form in a method of an ActiveX Library
> > which is called by a VB MDI App. I have access to
> > the hwnd of the MDI Parent form. Is it possible to make
> > my form act like an MD Child?
> >
> > Thanks
> >
> >  Regards Neven
> >  N.K. MacEwan B.E. E&E
> >  Ph 649 621 0001
> >  Fax 649 621 0400
> >  [EMAIL PROTECTED]
> >
> > _______________________________________________
> > Delphi mailing list
> > [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
> >
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to