📄 weather.dpr
字号:
program Weather;
uses
Windows,
Forms,
Unit_Weather in 'Unit_Weather.pas' {Frm_Weather},
Unit_About in 'Unit_About.pas' {Frm_About},
Unit_System in 'Unit_System.pas' {Frm_System},
Unit_Const in 'Unit_Const.pas',
Unit_thread in 'Unit_thread.pas';
{$R *.res}
var
WeatherHandle :Hwnd;
WeatherRet :Integer;
begin
Application.Initialize;
Application.Title := 'Weather';
WeatherHandle:=CreateMutex(nil,false,'Weather');
WeatherRet:=GetLastError;
if WeatherRet<>ERROR_ALREADY_EXISTS then
begin
Application.CreateForm(TFrm_Weather, Frm_Weather);
Application.Run;
end else
Application.MessageBox('[Weather]程序已经在运行中!','警告',MB_OK+MB_ICONSTOP);
ReleaseMutex(WeatherHandle);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -