我这么作也不行 5555555555
procedure TMainForm.CreateParams(var Params: TCreateParams);
begin
inherited createparams(params);
with Params do
Style:=Style and (not $00008000); //FWS_ADDTOTITLE);
end;
procedure TMainForm.WMGetText(var Message: TWMGetText);
const
Cap: String = '主窗口';
begin
with Message do begin
StrPCopy(Text, Cap);
Result := Length(Cap) + 1;
end;
end;