Owners and Parents Was: Re: [lazarus] Creating Components...

Jeff Wormsley daworm at cdc.net
Fri Aug 13 13:55:49 EDT 1999


On 8/13/99, at 7:16 PM, Marc Weustink wrote: 

All of the deleted part is understood.

>>How
>>do you, after the create, tell a window that it has a parent, when it did
>>not have one when it was created?
>
>like line 3 and 4.

No, not the object, the window, the thing pointed to by the HWnd handle.  When you call CreateWindow, you pass either a parent window handle, or you pass 0 for no parent.  If you create the handle with a 0, can you change the window parent later?  If so, how?  This has nothing to do with the TWinControl or whatever object, only the HWnd data.

Jeff.







More information about the Lazarus mailing list