本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);
begin
//覆盖任务栏
Self.BorderStyle := bsNone;
Self.Left := 0;
Self.Top := 0;
Self.Width := Screen.Width;
Self.Height := Screen.Height;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
//保留任务栏
Self.BorderStyle := bsNone;
Self.Left := Screen.WorkAreaLeft;
Self.Top := screen.WorkAreaTop;
Self.Width := Screen.WorkAreaWidth;
Self.Height := Screen.WorkAreaHeight;
end;
相关阅读 >>
monthoftheyear:取得一个tdatetime变量的月份在年度中的索引
Delphi xe7 新的并行库 system.threading
Delphi windows 编程[1] - 窗体生成的过程一
Delphi sendmessage postmessage 原理和区别
更多相关阅读请进入《Delphi》频道 >>