unit1.~pas

来自「《Delphi实用程序100例》配套书源码盘」· ~PAS 代码 · 共 45 行

~PAS
45
字号
unit Unit1;

interface

uses
  {$IFDEF Win32} Windows, ShellAPI, {$ELSE} WinTypes, WinProcs, {$ENDIF}
  Messages, Classes, Forms, Controls, StdCtrls, Menus;

type
  TForm1 = class(TForm)
    MainMenu1: TMainMenu;
    N1: TMenuItem;
    E1: TMenuItem;
    D1: TMenuItem;
    A1: TMenuItem;
    procedure A1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

{$IFNDEF Win32}
function ShellAbout(Wnd: HWnd; App, Stuff: PChar; Icon: HIcon): Integer;
  far; external 'shell';
{$ENDIF}

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.A1Click(Sender: TObject);
begin
  ShellAbout(Application.MainForm.Handle,
             '此处写您的软件名称',
             'Copyright (c) 2001-2002'#13'http://www.您的网站.com',
             Application.Icon.Handle);

end;

end.
 

⌨️ 快捷键说明

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