[Lazarus] TWinControl.AddControl?

Paul Ishenin ip at kmiac.ru
Fri Oct 21 02:08:18 CEST 2011


21.10.2011 5:39, Hans-Peter Diettrich wrote:
> What's the purpose and action of TWinControl.AddControl?
>
> The source code comment suggests
> Add Handle object to *parents* Handle object.
> but the code invokes
> TWSControlClass(WidgetSetClass).AddControl(Self);
> with no Parent involved!
>
> Can somebody explain that?

Well, Parent and Parent Handle are different. Parent is about LCL/VCL 
TControl property and Parent Handle is about widgetset window object 
like a call to SetParent(hWndChild, hWndParent: HWND): HWND.

Best regards,
Paul Ishenin





More information about the Lazarus mailing list