Hello,
I once asked here, if someone knows any replacement for the Delphi function:
MyForm.ParentWindow := HWnd(AnotherForm.Handle);
I need this to make a form stored in a DLL is "move" into another form
(called MyForm here). I tried
Parent := FindControl(AnotherForm.Handle)
but I guess since both forms are not in the same project it won't find
that handle and thus return nil.
There is a FParentWindow located in TWinControl, but there is nothing
like ParentWindow. Is there any reason for it or was it simply never
necessary and thus never implemented? Any hints welcome!
Thanks in advance,
Christian
Christian Budde wrote:
Hi again,
I'm now missing a procedure to 'host' a form in a different window
given only by a handle. In Delphi it's as simple as
MyForm.ParentWindow := HWnd(Handle);
It directly uses Windows.SetParent(FHandle, Value); from the WinAPI.
At the moment I'm still on Windows, but I'd like to find a
multi-platform solution.
There is a FParentWindow located in TWinControl, but there is nothing
like ParentWindow. Is there any reason for it or was it simply never
necessary and thus never implemented? Any hints welcome!
Thanks in advance,
Christian