⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 desktop.dpr

📁 Clock 桌面时钟 日历 阴历 看到的delphi程序 转发
💻 DPR
字号:
program Desktop;

uses
  Forms,
  MacForm,
  IpcThrd,
  Windows,
  Main in 'Main.pas' {frmMain},
  Timer in 'Timer.pas' {frmTime},
  Option in 'Option.pas' {frmOption};

{$R Desktop.res}
{$R DelphiXP.res}
const
  sMutex = 'DesktopMutex';
begin
  if not MutexExist(sMutex) then
  begin
    with TMutex.Create(sMutex) do
    begin
      Randomize;

      with application do
      begin
        Initialize;

        SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE)
          or WS_EX_TOOLWINDOW);
        Icon.Handle := LoadIcon(MainInstance, MAKEINTRESOURCE(100));

        CreateForm(TfrmTime, frmTime);
        CreateForm(TfrmOption, frmOption);

        Run;
      end;
      free;
    end;
  end;
end.

⌨️ 快捷键说明

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