H
HWJYT1
Unregistered / Unconfirmed
GUEST, unregistred user!
如下代码能够最小化所有子窗体,但是把(*NOTE*)字句改为反序则有一个子窗体不能最小化,为什么,谢谢!
procedure TForm1.N6Click(Sender: TObject);
VAR I:INTEGER;
begin
StatusBar1.Panels[0].Text:=inttostr(MDIChildCount);
FOR I:=MDIChildCount-1 downto 0 DO(*NOTE*)
begin
MDIChildren.WindowState:=wsMinimized;//所有子窗体最小化
end;
end;
procedure TForm1.N6Click(Sender: TObject);
VAR I:INTEGER;
begin
StatusBar1.Panels[0].Text:=inttostr(MDIChildCount);
FOR I:=MDIChildCount-1 downto 0 DO(*NOTE*)
begin
MDIChildren.WindowState:=wsMinimized;//所有子窗体最小化
end;
end;