procedure TMainForm.WMGetMinMaxInfo(var MSG: Tmessage);
begin
inherited;
with PMinMaxInfo(MSG.lparam)^ do
begin
with ptMinTrackSize do //设置最小尺寸
begin
X:=630;
Y:=472;
end;
end;
end;
procedure TMainForm.WMGetMinMaxInfo(var MSG: Tmessage);
begin
inherited;
with PMinMaxInfo(MSG.lparam)^ do
begin
with ptMinTrackSize do //设置最小尺寸
begin
X:=最小的width;
Y:=最小的Height;
end;
end;
end;