📄 srm.dpr
字号:
//---------------------------------------------------------------------------
//(R)CopyRight KivenSoft International ,inc 1998
//程序名称:电子书库
//单元名称:主单元
//作 者:李会文
//开始时间:1998.07.28
//最后修改:1999.03.18
//---------------------------------------------------------------------------
program Srm;
uses
Windows,
Forms,
MainUnit in 'MainUnit.pas' {SrmForm},
MyLabel in 'MyLabel.pas',
SrmUnit in 'SrmUnit.pas',
SrmConst in 'SrmConst.pas',
SrmAbout in 'SrmAbout.pas' {AboutForm},
SrmOption in 'SrmOption.pas' {OptionForm};
{$R *.RES}
var
AboutBox:TAboutForm;
ITime:DWORD;
hMutex:HWND;
Ret:Integer;
begin
Application.Initialize;
Application.Title:='电子书库';
HMutex:=CreateMutex(nil,false,'电子书库');
Ret:=GetLastError;
if Ret<>ERROR_ALREADY_EXISTS then //如果已经运行过
begin
AboutBox:=TAboutForm.Create(nil); //启动屏幕
AboutBox.BorderStyle:=bsNone;
AboutBox.OKButton.Visible:=false;
AboutBox.ClientHeight:=AboutBox.Panel1.Top+AboutBox.Panel1.Height+10;
AboutBox.Show;
AboutBox.Update;
ITime:=GetTickCount;
Application.CreateForm(TSrmForm, SrmForm);
while (GetTickCount-ITime)<2000 do; //延迟两秒
AboutBox.Hide;
AboutBox.Free;
Application.Run;
end
else
begin
Application.MessageBox(csAppExists,csAppName,MB_OK);
end;
ReleaseMutex(hMutex);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -