mainfont.h

来自「用C++ builer 实现的关于文件操作经典实例 里面有所有工程需要的源代码」· C头文件 代码 · 共 49 行

H
49
字号
//---------------------------------------------------------------------------

#ifndef MainFontH
#define MainFontH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TButton *NextButton;
        TEdit *Edit1;
        TButton *ForwardButton;
        TPaintBox *PaintBox1;
        TPaintBox *PaintBox2;
        TButton *OKButton;
        TLabel *Label1;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
        void __fastcall NextButtonClick(TObject *Sender);
        void __fastcall PaintBox1Paint(TObject *Sender);
        void __fastcall ForwardButtonClick(TObject *Sender);
        void __fastcall OKButtonClick(TObject *Sender);
private:	// User declarations
        int iFileHandle;
        int iFileLength;
        int iBytesRead;
        char *pszBuffer;  //
        long int dptr;
//	int file_size;

        void __fastcall DrawRect();
        void __fastcall PaintFont();
        int  __fastcall GetWordPtr(int x1,int x2);

public:		// User declarations
        __fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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