main.h

来自「C++Builder程序员编程手记《配书光盘》」· C头文件 代码 · 共 55 行

H
55
字号
//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <registry.hpp>
#include <ComCtrls.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
  TTreeView *TreeView1;
  TSplitter *Splitter1;
  TPanel *Panel1;
  TSpeedButton *SpeedButton1;
  TSpeedButton *SpeedButton2;
  TSpeedButton *SpeedButton3;
  TSpeedButton *SpeedButton4;
  TSpeedButton *SpeedButton5;
  TComboBox *ComboBox1;
  TRadioButton *RadioButton1;
  TRadioButton *RadioButton2;
  TListView *ListView1;
  TOpenDialog *OpenDialog1;
        void __fastcall FormCreate(TObject *Sender);
  void __fastcall TreeView1Click(TObject *Sender);
  void __fastcall ComboBox1Change(TObject *Sender);
  void __fastcall RadioButton1Click(TObject *Sender);
  void __fastcall SpeedButton1Click(TObject *Sender);
  void __fastcall SpeedButton2Click(TObject *Sender);
  void __fastcall SpeedButton3Click(TObject *Sender);
  void __fastcall SpeedButton5Click(TObject *Sender);
private:	// User declarations
        TRegistryIniFile *reg;
        TIniFile *ini;
        TStrings *str;
        TTreeNode *Node;
    AnsiString __fastcall AppendKey(TTreeNode *key);
    void __fastcall ShowRegValue(TRegistryIniFile *newreg,AnsiString KeyPath);
    void __fastcall ShowIniValue(TIniFile *newini,AnsiString Key);
  void GetAllKeys(TTreeNode * CurrentNode,TRegistryIniFile *CurrentReg);
public:		// User declarations
  __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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