A
arriving
Unregistered / Unconfirmed
GUEST, unregistred user!
也就是说panel能成为dll中的父类,源码如下:<br>dll的输出函数是:<br> Procedure ShowConfigure (appHandle:HWND;Owner:TWinControl);//owner是panel<br>其实现:<br> application.Handle:=appHandle;<br> form3:=tform3.Create(application,owner);//form3就是dll中的窗体<br><br>form3如下:<br> Tform3 = class(TForm)<br> Panel1: TPanel;<br> private<br> FParent:TWinControl;<br> protected<br> procedure CreateParams(var Params : TCreateParams);override;<br> procedure Loaded;override;<br> public<br> constructor Create(AOwner : TComponent; AParent : TWinControl);overload;<br> end;<br><br>var<br> form3: Tform3;<br><br>implementation<br><br>{$R *.dfm}<br>procedure tform3.CreateParams(var params:TCreateParams);<br>begin<br> inherited Createparams(params);<br> params.Style:=WS_CHILD or WS_CLIPSIBLINGS;<br>end;<br><br>procedure tform3.Loaded;<br>begin<br> align:=alClient;<br> BorderStyle:=bsNone;<br> BorderIcons:=[];<br> Position:=poDefault;<br> Parent:= FParent;<br>end;<br><br>constructor tform3.Create(AOwner : TComponent; AParent : TWinControl);<br>begin<br> FParent:=AParent;<br> inherited Create(AOwner);<br>end; <br><br>这段程序中有什么错误么?