main.h

来自「zip算法的源码」· C头文件 代码 · 共 66 行

H
66
字号
// InstallZip - Demo4 of C-Builder Zip v1.51
/* This is a C-Builder example of how a small self-installing program
 * might be written. If it runs with an argument of /INSTALL, it automatically
 * brings up the install menu.  If it runs with an argument of /UNINSTALL
 * (such as when running from the Control Panel Uninstall option), it
 * does the uninstall and exits.  If the argument is anything else, then
 * it assumes it's a zip file and tries to open it.
 *
 * IMPORTANT!!!  "Install" is designed for Win95 Registry keys.  It
 * should work on Win98, but it will likely require some tweaks for WinNT.
 * YOU HAVE BEEN WARNED!
 */

//---------------------------------------------------------------------------
#ifndef MainH
#define MainH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>

#include "Grids.hpp"
#include "ZipBuilder.h"

//---------------------------------------------------------------------------
class TMainForm : public TForm {
	__published:	// IDE-managed Components
		TPanel			*Panel1;
		TLabel			*Label1;
		TLabel			*Label2;
		TLabel			*ZipFName;
		TLabel			*Label4;
		TButton			*OpenBut;
		TButton			*CancelBut;
		TButton			*InstBut;
		TOpenDialog		*OpenDialog1;
		TZipBuilder		*ZipDir1;
  TStringGrid *StringGrid1;

		void __fastcall FormActivate( TObject *Sender );
		void __fastcall OpenButClick( TObject *Sender );
		void __fastcall InstButClick( TObject *Sender );
		void __fastcall CancelButClick( TObject *Sender );
		

	public:			// User declarations
    TGridRect SelRect;
		__fastcall TMainForm( TComponent *Owner );

		bool			 AutoUnInstall;

		void __fastcall FillGrid( void );
  private: //user declarations
    void __fastcall ClearGrid(void);
    void __fastcall SortGrid(void);
};

//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;

#endif

⌨️ 快捷键说明

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