delphi程序全屏顯示無標題欄覆蓋整個屏幕(適合屏保)
更新時間:2013年06月28日 16:55:44 作者:
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;
復制代碼 代碼如下:
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中exit,abort,break,continue的區(qū)別介紹
本文詳細介紹下delphi中表示跳出的有break,continue, exit,abort, halt, runerror的區(qū)別,感興趣的朋友可以參考下哈,希望對你學習跳出有所幫助2013-04-04