main.h

来自「这是通过COM口对声波触摸屏控制卡直接进行数据包解读的程序源码. BCB」· C头文件 代码 · 共 58 行

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

#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <dos.h>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TComboBox *ComboBox1;
        TButton *Button1;
        void __fastcall Button1Click(TObject *Sender);
        void __fastcall FormKeyUp(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall FormPaint(TObject *Sender);
private:	// User declarations
        int flag;     //程序状态
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        void __fastcall drawcross(int,int,int,int);
        void __fastcall createcomport();
        int testmode;
        int xleft,ytop,xright,ybottom,xcen,ycen;
        double xk,x0,yk,y0;
        struct time t0,t1;
        void __fastcall signorien(int,int,int,int);
        void __fastcall signdisp(int,int,int,int);
};
//---------------------------------------------------------------------------
class TOrienRead : public TThread {
private:
protected:
        void __fastcall DisplayIt(void);
        void __fastcall Execute();
public:
        __fastcall TOrienRead(bool CreateSuspended);
       int stat,typ,xh,xl,yh,yl,zh,zl;
};
class TDispRead : public TThread {
private:
protected:
        void __fastcall DisplayIt(void);
        void __fastcall Execute();
public:
        __fastcall TDispRead(bool CreateSuspended);
       int stat,typ,xh,xl,yh,yl,zh,zl;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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