Neven MacEwan asks:

> 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?

If you create a new TForm derived class and override the CreateWindowHandle
method you can do this. Have a look at the implementation of
TCustomForm.CreateWindowHandle and you'll see how Delphi creates a MDI child
window for the applications main form, and then it should be obvious how to
alter this code to send the WM_MDICREATE to the VB main form handle to get
the window created.

I have modified this code my self in our application to allow for multiple
MDI main forms in the same application, so I know this sort of mucking about
works nicely.

Cheers, Max.


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to