traytest.dpr

来自「图标提取器源码 非常管用.大家试试」· DPR 代码 · 共 27 行

DPR
27
字号
program TrayTest;

uses
  Forms,
  WinProcs,
  TiMain in 'TiMain.pas' {MainForm},
  CoolTrayIcon in 'CoolTrayIcon.pas';

{$R *.RES}

begin
  Application.Initialize;
  Application.Title := 'TrayIcon Test';
{
In stead of using StartMinimized you can insert these two lines.
This code will be executed immediately, while StartMinimized will
be executed when the TCoolTrayIcon component is loaded.
However, it makes no difference because the main form is not shown
before Application.Run is executed.

  Application.ShowMainForm := False;
  ShowWindow(Application.Handle, SW_HIDE);
}
  Application.CreateForm(TMainForm, MainForm);
  Application.Run;
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?