📄 modem3dlg.h
字号:
// Modem3Dlg.h : header file
//
//{{AFX_INCLUDES()
//#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_MODEM3DLG_H__6F1884C2_7075_4CCA_BA1B_5372422C9D52__INCLUDED_)
#define AFX_MODEM3DLG_H__6F1884C2_7075_4CCA_BA1B_5372422C9D52__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BtnST.h"
/////////////////////////////////////////////////////////////////////////////
// CModem3Dlg dialog
#include "mscomm.h"
#include "LinkButton.h"
#include "Link1Button1.h"
class CModem3Dlg : public CDialog
{
// Construction
public:
CMSComm m_Com;
CString m_str;
int kong_re;
unsigned char send_data[40]; //立即查寻数组
int send_flag; //立即查寻标志
unsigned char immediate_data[50]; //实时数组;
int button_flag;
public:
CModem3Dlg(CWnd* pParent = NULL); // standard constructor
void receive(void); //数据收完处理
void data_dealwith(void); //数据显示
void parameter_dealwith(void); //数据显示之参数处理
void auto_dealwith(void); //数据显示之自动运行
void zb_dealwith(void); //数据显示之部件
void guzhang_dealwith(void); //数据显示之故障
static UINT ThreadFunc(LPVOID pParam); //辅助线程(处理后台工作)
void gongkuang_communcation(void); //工况查寻
void immediate_communcation(void); //及时查寻
void zjbj(void); //自动和部件(整机)界面转换
void communcation(void); //通讯处理
void addRecordset(void); //增加记录
// Dialog Data
//{{AFX_DATA(CModem3Dlg)
enum { IDD = IDD_MODEM3_DIALOG };
CStatic m_pbsf;
CStatic m_ppsf;
CStatic m_plrf;
CStatic m_pljf;
CStatic m_prsrsj;
CStatic m_prsb;
CStatic m_prsj;
CStatic m_pryb;
CStatic m_plqfj;
CStatic m_pljb;
CStatic m_pzkb;
CStatic m_plqb;
CStatic m_pktsb;
float m_ktsin;
CLinkButton m_ktkbut;
CLinkButton m_ktgbut;
CLinkButton m_rskbut;
CLinkButton m_rsgbut;
CLink1Button m_reset;
CButtonST m_zhileng;
CButtonST m_zhire;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModem3Dlg)
public:
virtual CScrollBar* GetScrollBarCtrl(int nBar) const;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
protected:
HICON m_hIcon;
HICON m_hIcon2[3]; //燃烧机图标
HICON m_hIcon3[2]; //阀的图标
HICON m_hIcon1[8]; //泵的图标
CBrush m_brush1,m_brush2,m_brush3,m_brush4; // 自定义刷子
CMenu m_Menu; //系统菜单
CLinkButton m_ktsbopen,m_ktsbclose;
CLinkButton m_lqbdisuopen,m_lqbgaosuopen,m_lqbclose;
CLinkButton m_lqfjdisuopen,m_lqfjzhongsuopen,m_lqfjgaosuopen,m_lqfjclose;
CLinkButton m_ljbopen,m_ljbclose;
CLinkButton m_zkbopen,m_zkbclose;
CLinkButton m_rybopen,m_rybclose;
CLinkButton m_lqfj2open,m_lqfj2close;
CLinkButton m_rsbopen,m_rsbclose;
CLinkButton m_lrfopen,m_lrfclose,m_lrfstop;
CLinkButton m_ljfopen,m_ljfclose,m_ljfstop;
CLinkButton m_bsfopen,m_bsfclose;
CLinkButton m_psfopen,m_psfclose,m_psfstop;
CLinkButton m_rsjstop,m_rsjxiaohuo,m_rsjdahuo;
CLinkButton m_rsrsjxiaohuo,m_rsrsjdahuo,m_rsrsjstop;
int add; //记录当前图标号,初值为0
int abb; //记录当前图标号,初值为0
int shiwaiji_xuanze; //室外机选择标志
int m_kzfs; //0自动控制,1部件控制,2整机控制,3手动融晶
int m_gzzt; //1制冷 2制热
float a_flag[16]; //参数刷新标志
unsigned char b_flag[16]; //部件调试刷新标志
int send_over; //数据发送完标志
long int shiwaiji_send_timer[2]; //室外机发送次数
long int shineiji_send_timer[16]; //室内机发送次数
long int reshueiguan_send_timer[8]; //热水罐发送次数
int send_owner; //发送所有权标志(1--室外机,2--室内机,3--热水罐)
int shiwaiji_owner_no; //室外机发送所有权标志
int shiwaiji_command_no; //室外机查寻命令的类别(如工况,实时故障等)
int shineiji_owner_no; //室内机发送所有权标志
int reshueiguan_owner_no; //热水罐发送所有权标志
unsigned char receive_data[60]; //数据接收数组
UINT receive_flag; //一贞数据收完标志
unsigned char shiwaiji_gongkuang[2][47]; //室外机工况数据数组
unsigned char shiwaiji_guzhang[2][16]; //室外机故障数据
unsigned char shineiji_gongkuang[80][50]; //室内机工况
unsigned char reshueiguan_gongkuang[16][50]; //热水罐工况
unsigned char send_timer; //立即查寻发送次数
int time_over; //超时处理
unsigned char ye1,ye2;
int m_high;
int draw_flag;
int m_resetflag;
int m_count;
int m_long;
CDialogBar m_DialogBar;
_RecordsetPtr m_pRecord;
COleDateTime m_Time;
int m_Minute;
// Generated message map functions
//{{AFX_MSG(CModem3Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnBehao();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLsgz();
afx_msg void OnZjts();
afx_msg void OnUpdateZjts(CCmdUI* pCmdUI);
afx_msg void OnUpdateBjts(CCmdUI* pCmdUI);
afx_msg void OnAuto();
afx_msg void OnKtsbopen();
afx_msg void OnKtsbclose();
afx_msg void OnLqbdisuopen();
afx_msg void OnLqbclose();
afx_msg void OnLqfjdisuopen();
afx_msg void OnLqfjclose();
afx_msg void OnLjbopen();
afx_msg void OnLjbclose();
afx_msg void OnZkbopen();
afx_msg void OnZkbclose();
afx_msg void OnRybopen();
afx_msg void OnRybclose();
afx_msg void OnOnCommMscomm2();
afx_msg void OnUpdateAuto(CCmdUI* pCmdUI);
afx_msg void OnHelp();
afx_msg void OnShiwaiji2();
afx_msg void OnShiwaiji1();
afx_msg void OnShinei();
afx_msg void OnJxcs();
afx_msg void OnCool();
afx_msg void OnBjts();
afx_msg void OnHot();
afx_msg void OnTiming();
afx_msg void OnRongyebeng();
afx_msg void OnLishikongtiao();
afx_msg void OnLishireshuei();
afx_msg void OnJiejing();
afx_msg void OnBuchang();
afx_msg void OnReshuei();
afx_msg void OnNenghao();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnKtkbut();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MODEM3DLG_H__6F1884C2_7075_4CCA_BA1B_5372422C9D52__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -