saleclient.~dpr

来自「网吧商品销售平台」· ~DPR 代码 · 共 29 行

~DPR
29
字号
program SaleClient;

uses
  Forms,
  windows,
  client in 'client.pas' {ClientForm},
  about in 'about.pas' {AboutForm},
  wait in 'wait.pas' {WaitReceiveForm};

{$R *.res}

var hwd:HWND;
begin
hwd:=Findwindow(nil,Pchar('网吧销售平台客户端'));
if hwd<>0 then
begin
application.Title:='菜单程序已加载!';
SetWindowPos(hwd, HWND_TOPMOST, 0, 0, 0, 0, SWP_SHOWWINDOW or SWP_NOSIZE or SWP_NOMOVE);
ShowWindow(hwd, SW_SHOW);
//postmessage(hwd,WM_SYSCOMMAND,SC_RESTORE,0);
halt;
end;
  Application.Initialize;
  Application.Title := '网吧销售平台客户端';
  Application.CreateForm(TClientForm, ClientForm);
  Application.ShowMainForm:=False;
  Application.Run;
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?