//使窗体标题栏文字右对齐
private
{ Private declarations }
protected
procedure CreateParams(var Params: TCreateParams); override;
procedure TForm1.CreateParams(var Params: TCreateParams);
begin
inherited;
params.ExStyle:=Params.ExStyle+ws_ex_right;
end;