setcs.h
来自「这是一个电力多功能电表的参数设置工具软件」· C头文件 代码 · 共 97 行
H
97 行
//---------------------------------------------------------------------------
#ifndef setCsH
#define setCsH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <Mask.hpp>
//---------------------------------------------------------------------------
class TfrmSetCs : public TForm
{
__published: // IDE-managed Components
TBitBtn *btnOk;
TBitBtn *btnCancel;
TPanel *Panel1;
TPanel *Panel2;
TPanel *Panel3;
TPanel *Panel4;
TPanel *Panel5;
TPanel *Panel6;
TPanel *Panel7;
TPanel *Panel8;
TPanel *Panel9;
TPanel *Panel10;
TComboBox *cboXlsj;
TUpDown *UpDown1;
TEdit *edtXxsj;
TUpDown *UpDown2;
TEdit *edtDld;
TComboBox *cboBps;
TMaskEdit *mskEdtH;
TMaskEdit *mskEdtL;
TUpDown *UpDown3;
TEdit *edtBph;
TMaskEdit *mskEdtCfh;
TComboBox *cboCbr;
TLabel *Label1;
TLabel *Label2;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TBevel *Bevel1;
TPanel *Panel11;
TComboBox *cboFl;
TLabel *Label7;
TSpeedButton *SpeedButton1;
TCheckBox *chkXlsj;
TCheckBox *chkXxsj;
TCheckBox *chkCbr;
TCheckBox *chkFhr;
TCheckBox *chkCfh;
TCheckBox *chkDyh;
TCheckBox *chkDyl;
TCheckBox *chkBph;
TCheckBox *chkDld;
TCheckBox *chkBps;
TCheckBox *chkFl;
TSpeedButton *SpeedButton2;
TSpeedButton *SpeedButton3;
TLabel *Label8;
TLabel *Label3;
TEdit *edtCbr;
TUpDown *UpDown4;
TLabel *Label9;
TEdit *edtFhr;
TUpDown *UpDown5;
void __fastcall btnCancelClick(TObject *Sender);
void __fastcall btnOkClick(TObject *Sender);
void __fastcall SpeedButton1Click(TObject *Sender);
void __fastcall SpeedButton2Click(TObject *Sender);
void __fastcall SpeedButton3Click(TObject *Sender);
private: // User declarations
struct setCs
{
char CFH[7],FH[3],CB[3],BPH[4];
char DLD[3],FL[3],BPS[5],DS[3];
char SJ[3],H[6],L[6];
}myCs;
void __fastcall readCs();
public: // User declarations
__fastcall TfrmSetCs(TComponent* Owner);
AnsiString writeStr;
AnsiString __fastcall addStr(AnsiString sourStr,int len);
AnsiString __fastcall StrToHex(AnsiString sourStr,int len);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmSetCs *frmSetCs;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?