📄 interfacedlg.h
字号:
// InterfaceDlg.h : header file
//
#if !defined(AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_)
#define AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "ColourPicker.h"
#include "ColourPopup.h"
#include "DIB.h"
#include "BK_Ground.h"
/////////////////////////////////////////////////////////////////////////////
// CInterfaceDlg dialog
struct Serial_51
{
int add;
int channel;
};
class CInterfaceDlg : public CDialog
{
// Construction
public:
void Control(int chnl,int key);
void OnControlRemote(int add,int chnl);
void Get51Data();
void Onshowset2info();
void OnShowSET2INFO();
void OnShowLastVal();
void ShowLabel();
void ReadConfigs();
CBK_Ground New_BK; //画图
CInterfaceDlg(CWnd* pParent = NULL); // standard constructor
CButton ChannelCheck[8]; //选择的通道
CColourPicker m_setcolour[8]; //8个设置颜色的按钮
CString m_channellabel[8]; //8路通道的标签
int ChannelChecked[8]; //选择的通道的队列
CChannelInfo m_channelinfo[8]; //定义8路通道的对象
CString m_set2info[8]; //设置信息的8个标签,右面
CString m_lastval[8]; //最近一次的取值,8个标签,右下方
BOOL Isrecord;
COLORREF StartColour[8];
Serial_51 *Trans_Ser;
LONG TimerNow; //计数器
int m_nTimer; //计数器句柄
short int beGetting; //正在占用通道采集数据 0-no 1 -ing
short int beTimering; //是否已开始计时;0:no 1: ing
short int beStarting; //是否已开始采集数据; 0:no 1:ing
LONG inters[8]; //各通道自动采集的时间间隔
CDC *pDC_h; //CDC设备
CStatic m_bmp[8]; //表示开关的图片
// Dialog Data
//{{AFX_DATA(CInterfaceDlg)
enum { IDD = IDD_INTERFACE_DIALOG };
CString m_pointsnum;
int m_interval;
int m_terminal_com;
BOOL m_control0;
BOOL m_control1;
BOOL m_control2;
BOOL m_control3;
BOOL m_control4;
BOOL m_control5;
BOOL m_control6;
BOOL m_control7;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInterfaceDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CInterfaceDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnGotoChannelSet();
afx_msg void OnSavePic();
afx_msg void OnSetBench();
afx_msg void OnSetPoints();
afx_msg void OnSetInterval();
afx_msg void OnReFreash();
afx_msg void OnStart();
afx_msg void OnChannelcheck0();
afx_msg void OnChannelcheck1();
afx_msg void OnChannelcheck2();
afx_msg void OnChannelcheck3();
afx_msg void OnChannelcheck4();
afx_msg void OnChannelcheck5();
afx_msg void OnChannelcheck6();
afx_msg void OnChannelcheck7();
afx_msg void OnSetCommPort();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButton2();
afx_msg void OnOpenpic();
afx_msg void OnFileSet();
afx_msg void OnExit();
afx_msg void OnRecord();
afx_msg void OnControl0();
afx_msg void OnControl1();
afx_msg void OnControl2();
afx_msg void OnControl3();
afx_msg void OnControl4();
afx_msg void OnControl5();
afx_msg void OnControl6();
afx_msg void OnControl7();
afx_msg void OnCheckCk();
//}}AFX_MSG
afx_msg LONG OnSelEndOK(UINT lParam, LONG wParam);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -