📄 desktop.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 + -