procedure Tfrmmain.CloseChildForm;
var
I: Integer;
begin
if MDIChildCount<>0 then
begin
with Frmmain do
for I := MDIChildCount-1 downto 0 do
MDIChildren.Close;
end;
end;
Tfrmmain是主窗口
procedure Tfrmmain.CloseChildForm;
var
I: Integer;
begin
if MDIChildCount<>0 then begin
with Frmmain do
for I := MDIChildCount-1 downto 0 do
MDIChildren.Close;
end;
end;