L
Lion_sj
Unregistered / Unconfirmed
GUEST, unregistred user!
我试了一下,如何不是采用dll方式的话,能够正确嵌入。
代码如下:
if not assigned(form1) then
Application.CreateForm(Tform1,form1)
with form1 do
begin
Parent := panel;
align := alClient;
BorderStyle := bsNone;
BorderIcons := [];
Top := 0;
Left := 0;
WindowState:=wsMaximized
show
end
但是如果采用dll方式的话,发现什么反应都没有,怎么回事?代码如下:
DLLName := getDisposalDLLName;
LoadDLL(DLLName);
if not assigned(ChildForm) then begin
ChildForm:=ShowChild(Application,@FormFreeCallBack,'','','dBAlias_ND',ssdw,Userid,ScrollBox1);
end;
with ChildForm do
begin
Parent := scrollbox1;
align := alClient;
BorderStyle := bsNone;
BorderIcons := [];
Top := 0;
Left := 0;
WindowState:=wsMaximized
show
end;
代码如下:
if not assigned(form1) then
Application.CreateForm(Tform1,form1)
with form1 do
begin
Parent := panel;
align := alClient;
BorderStyle := bsNone;
BorderIcons := [];
Top := 0;
Left := 0;
WindowState:=wsMaximized
show
end
但是如果采用dll方式的话,发现什么反应都没有,怎么回事?代码如下:
DLLName := getDisposalDLLName;
LoadDLL(DLLName);
if not assigned(ChildForm) then begin
ChildForm:=ShowChild(Application,@FormFreeCallBack,'','','dBAlias_ND',ssdw,Userid,ScrollBox1);
end;
with ChildForm do
begin
Parent := scrollbox1;
align := alClient;
BorderStyle := bsNone;
BorderIcons := [];
Top := 0;
Left := 0;
WindowState:=wsMaximized
show
end;