u_test.h

来自「C++ builder 环境下编写」· C头文件 代码 · 共 58 行

H
58
字号
//---------------------------------------------------------------------------

#ifndef U_TestH
#define U_TestH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "Comm.h"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TF_Test : public TForm
{
__published:	// IDE-managed Components
        TComm *Comm1;
        TMemo *mReceive;
        TGroupBox *GroupBox1;
        TLabel *Label2;
        TComboBox *cmbCom;
        TLabel *Label3;
        TComboBox *cmbBaud;
        TGroupBox *GroupBox2;
        TLabel *Label4;
        TEdit *edtTel;
        TLabel *Label5;
        TEdit *edtSend;
        TStatusBar *sbStatus;
        TLabel *Label1;
        TLabel *Label6;
        TLabel *Label7;
        TLabel *Label8;
        TLabel *Label9;
        TTimer *Timer1;
        TSpeedButton *spdInit;
        TSpeedButton *spdSend;
        TSpeedButton *spdPause;
        TSpeedButton *SpeedButton1;
        void __fastcall Comm1ReceiveData(TObject *Sender);
        void __fastcall Timer1Timer(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall spdSendClick(TObject *Sender);
        void __fastcall spdInitClick(TObject *Sender);
        void __fastcall spdPauseClick(TObject *Sender);
        void __fastcall SpeedButton1Click(TObject *Sender);
private:	// User declarations
        void __fastcall InitComm(int dPort,int dBaud);
public:		// User declarations
        __fastcall TF_Test(TComponent* Owner);
        bool flag;
};
//---------------------------------------------------------------------------
extern PACKAGE TF_Test *F_Test;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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