if flag=
begin
newform:=Tmaterials
newform
end;
end;
//
procedure Tmain
var
newform:Tbom;
i
begin
flag:=
for i:=
begin
// 通過對窗體標題判斷窗體是否存在
if main
begin
//如果窗體已存在
SendMessage(mdichildren[i]
mdichildren[i]
//標識窗體已存在
flag:=
//退出循環
break;
end;
end;
//若窗體不存在
if flag=
begin
newform:=Tbom
newform
end;
end;
//
procedure Tmain
begin
Tile;
end;
//
procedure Tmain
begin
Cascade;
end;
right
From:http://tw.wingwit.com/Article/program/Delphi/201311/24957.html