?? 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]程序已經(jīng)在運行中!','警告',MB_OK+MB_ICONSTOP);
ReleaseMutex(WeatherHandle);
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -