delphi 程序全屏显示无标题栏,覆盖整个屏幕,这个在做工控机或屏保时有用的,所以记下
procedure TMainFrm.FormCreate(Sender: TObject);
begin
with MainFrm do begin
{ Position form }Top := 0 ;
Left := 0 ;
{ Go full screen}
BorderStyle := bsNone ;
WindowState := wsmaximized;
ClientWidth := Screen.Width ;
ClientHeight := Screen.Height;
Refresh;
SetForegroundWindow(Handle) ;
SetActiveWindow(Application.Handle) ;
end;
end;
本文介绍了一种使用Delphi实现程序全屏显示的方法,包括去除标题栏、最大化窗口、调整窗口尺寸等步骤,适用于工控机应用或屏保程序的开发。

1573

被折叠的 条评论
为什么被折叠?



