本文整理自网络,侵删。
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 processid, process handle, window handle 之间的互相转换
Delphi 是否是闰年- isleapyear、isinleapyear
Delphi xe filesizebyname 要引用哪些文件
解决 Delphi 程序在不同操作系统中 shellexecute 调用 chrome.exe 偶尔无效的问题
Delphi xe 无法编译apk提示sdk路径问题时?sdk路径配置方法
Delphi webbrowser getelementbyid().innerhtml与getelementbyid().value的区别
更多相关阅读请进入《Delphi》频道 >>