Alistair,
 
In your CreateWindow code, you will need to specify a class name as the first parameter.
 
Why bother with createwindow, when you can use TWinControl.Create().  You can then assign panel to the parent property.  Set the Align property to alClient and the new window will fill up the space inside the panel.
 
Hope this helps.
 


Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext 775 fax: +64-3-3588045

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alistair George
Sent: Wednesday, 24 February, 1999 11:21
To: Multiple recipients of list delphi
Subject: [DUG]: Creating a window

CreateWindow('',
      WS_CHILD or WS_VISIBLE, 0, 0,
      panel1.Width, panel1.Height,
      panel1.Handle, 0);
 
Makes a window, but on some computers there is no control over the window unless HwndC is destroyed. EG a minimise of mainform still leaves the Child floating on desktop.
It is dependent on hardware (works fine on some computers), but surely the Win API should handle that??
 
Takers, bidders anyone??
Alistair+

Reply via email to