本文整理自网络,侵删。
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;
相关阅读 >>
Delphi 在statusbar1.panels上显示日期时间星期
Delphi xe 网上获取北京时间android app 启动黑屏优化补丁
processid, process handle, window handle 之间的互相转换
更多相关阅读请进入《Delphi》频道 >>