?? testsetdata.h
字號(hào):
//---------------------------------------------------------------------------
#ifndef TestSetDataH
#define TestSetDataH
//---------------------------------------------------------------------------
#include "YbCommDevice.h"
#include "yb_base.h"
//---------------------------------------------------------------------------
#define WM_USERCMD (WM_USER+1)
#define UC_LOGIN 0x0001
//---------------------------------------------------------------------------
class TAppStrings
{
public:
__property AnsiString Str_AppTitle = { read = fGetMsg, index = 0 }; //"串口設(shè)置演示程序"
__property AnsiString Mnu_Language = { read = fGetMsg, index = 1 }; //"語言"
__property AnsiString Mnu_CommSet = { read = fGetMsg, index = 2 }; //"串口設(shè)置"
__property AnsiString Mnu_Exit = { read = fGetMsg, index = 3 }; //"退出"
__property AnsiString Mnu_Help = { read = fGetMsg, index = 4 }; //"幫助"
__property AnsiString Mnu_About = { read = fGetMsg, index = 5 }; //"關(guān)于"
__property AnsiString Mnu_Send = { read = fGetMsg, index = 6 }; //"發(fā)送"
__property AnsiString Mnu_File = { read = fGetMsg, index = 7 }; //"文件"
__property AnsiString Mnu_Data = { read = fGetMsg, index = 8 }; //"數(shù)據(jù)"
__fastcall TAppStrings();
private:
AnsiString __fastcall fGetMsg(int mt);
char **_Msg;
static char *_Msg_Chs[];
static char *_Msg_Cht[];
static char *_Msg_Enu[];
};
//---------------------------------------------------------------------------
class TAppCfg
{
public:
enum TLanguage { lgAuto=0, lgEnu =1, lgChs =2, lgCht =3 };
enum TFontSize { fsAuto=0, fsSmall=1, fsMedium=2, fsLarge=3 };
typedef struct
{
int Language;
int FontSize;
int PortNo ;
int Baud ;
int Parity ;
int ByteSize ;
int StopBits ;
int FlowControl;
int AutoAnswer ;
int InBufSize ;
int OutBufSize ;
} TCfgData;
TCfgData Cfg;
TAppCfg();
void Save(void);
void Load(TYbCustomCommDevice *lpComm);
void ApplyLang(void);
void ApplyComm(TYbCustomCommDevice *lpComm);
void ReadCommToCfg(TYbCustomCommDevice *lpComm);
};
extern TAppCfg AppCfg;
//---------------------------------------------------------------------------
#endif
//---------------------------------------------------------------------------
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -