delphi 简单实现程序全屏显示无标题栏,覆盖整个屏幕,这个在做工控机或屏保时有用的,具体代码如下,感兴趣的朋友可以参考下哈

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;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-10-05
  • 2021-11-23
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2021-08-10
  • 2021-07-24
  • 2021-08-22
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案