程序隐藏状态栏全屏显示
2013-02-25 11:09
246 查看
程序可以在隐藏状态栏全屏显示和原始状态显示之间切换
unit Unit13; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm13 = class(TForm) btn1: TButton; procedure btn1Click(Sender: TObject); private { Private declarations } L, T, W, H : integer; public { Public declarations } end; var Form13: TForm13; implementation {$R *.dfm} procedure TForm13.btn1Click(Sender: TObject); begin if Self.BorderStyle = bsNone then begin Showwindow(Findwindow('Shell_TrayWND',nil), SW_SHOWDEFAULT); Self.Left := L; self.Top := T; Self.Width := W; self.Height := H; Self.BorderStyle := bsSizeable; end else begin Showwindow(Findwindow('Shell_TrayWND',nil), SW_HIDE); L := Self.Left; T := self.Top; W := Self.Width; H := self.Height; Self.width:=screen.width; Self.height:=screen.height; Self.Top := 0; Self.Left := 0; Self.BorderStyle := bsNone; end; end; end.
相关文章推荐
- 程序启动让LaunchImage全屏显示,状态栏隐藏,启动完成再显示
- Android全屏显示时,状态栏显示在最顶层,不隐藏。
- ios 启动程序时隐藏状态栏,启动后显示状态栏
- IOS 程序中状态栏的显示与隐藏
- 隐藏标题栏,状态栏,导航栏,显示全屏
- 程序启动时隐藏状态栏,进入应用程序之后显示状态栏
- android监听系统状态栏的显示与隐藏(全屏与否)
- Android 设置全屏 状态栏的显示与隐藏
- 程序启动时隐藏状态栏,进入应用程序之后显示状态栏
- 设置Android应用全屏显示(隐藏手机状态栏)
- 标题栏和状态栏(全屏显示)的隐藏
- android之隐藏状态栏,全屏显示和隐藏虚拟按键
- 程序启动中状态栏隐藏以及启动后的显示
- Windows隐藏工具栏并使程序窗口全屏显示
- android4.0.3 去掉系统状态栏(StatusBar),让所有app程序均是全屏显示
- ios 启动程序时隐藏状态栏,启动后显示状态栏
- ios 启动程序时隐藏状态栏,启动后显示状态栏
- 隐藏状态栏后,图片不能全屏显示
- iOS程序启动的时候隐藏状态栏,启动完成之后显示状态栏
- android去掉系统状态栏(StatusBar),让所有app程序均是全屏显示