?? unit2.pas
字號:
unit Unit2;
interface
uses
Windows;
function CheckPrevInst( Title : string ) : boolean;
implementation
function CheckPrevInst( Title : string ) : boolean;
var
hd : HWND;
ps : Array[0..255] of Char;
begin
ps := FindWindow( 'TApplication', StrPCopy(ps, Title) );
if ps <> 0 then begin
SetForegroundWindow( hd );
ShowWindow( hd, SW_RESTORE );
end;
Result := ps <> 0;
end;
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -