unit1.h

来自「一个串口通信的源码」· C头文件 代码 · 共 60 行

H
60
字号
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    TLabel *Label_0;
    TButton *Exit;
    TStaticText *StaticText0;
    TButton *CloseCom;
    TButton *OpenCom;
    TLabel *Label_Title;
    TLabel *Label_1;
    TLabel *Label0;
    TButton *Button2;
    TComboBox *ComboBox1;
    TStaticText *StaticText1;
    TOpenDialog *OpenDialog1;
    TTimer *Timer1;
    TStaticText *StaticText2;
    TStaticText *StaticText3;
    TButton *Button1;
    TSaveDialog *SaveDialog1;
    TStaticText *StaticText4;
    TComboBox *ComboBox2;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *Label3;
    TLabel *Label4;
    TLabel *Label5;
    void __fastcall ExitClick(TObject *Sender);
    void __fastcall CloseComClick(TObject *Sender);
    void __fastcall OpenComClick(TObject *Sender);
    void __fastcall Button2Click(TObject *Sender);
    
    void __fastcall Timer1Timer(TObject *Sender);
    void __fastcall Button1Click(TObject *Sender);
private:	// User declarations
    void __fastcall CloseComEnabled();
    void __fastcall OpenComEnabled();
    int __fastcall Get_baud();
public:		// User declarations
    __fastcall TForm1(TComponent* Owner);
    int     port;
    FILE *fp;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
 

⌨️ 快捷键说明

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