📄 dlgstatedisplay.h
字号:
//{{AFX_INCLUDES()
//}}AFX_INCLUDES
#if !defined(AFX_DLGSTATEDISPLAY_H__7483D160_D52F_471B_8FEF_929E8D1C2CC0__INCLUDED_)
#define AFX_DLGSTATEDISPLAY_H__7483D160_D52F_471B_8FEF_929E8D1C2CC0__INCLUDED_
#include "SerialPort.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgStateDisplay.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgStateDisplay dialog
class CDlgStateDisplay : public CDialog
{
// Construction
public:
CDlgStateDisplay(CWnd* pParent = NULL); // standard constructor
static CString strAddress;
CString strAdd;
CString strReciveDis;//接收内容
static int iState;
int iIdxSta;//要显示的站点的索引号;
CString strStaDisName;//要显示的站点的名称;
int ReadConfigStaCnt(int &iCntSta);//得到站点总数;
void ReadConfigStaName(CStringArray &staName);//得到站点名称
void ReadConfigDevID(int iIndxSta,CStringArray &staDevID,int &iDevCnt);//取出第iIndxSta个站的设备
bool Sent(int iSentID);
void OnBtnDisplay(int iDev);
void WarnSet(CString strBinValue,int iLine);
void XstrtoBin(CString str,CString &strBin);
void OnButtonInit();
static CString strSent;
CSerialPort m_Port;
CStringArray straDev1;//设备ID数组
int Str2Hex(CString str, char* data);
char HexChar(char c);
void protectSet(CString strBinValue,int iLine);
CString m_strRXData;
int len;
void SetStaticFont();
void getFileName();
static CString strFileName;
// Dialog Data
//{{AFX_DATA(CDlgStateDisplay)
enum { IDD = IDD_DLG_STATE_DISPLAY };
CListCtrl m_ListCtrl;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgStateDisplay)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgStateDisplay)
afx_msg void OnDblclkListAlert(NMHDR* pNMHDR, LRESULT* pResult);
virtual BOOL OnInitDialog();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClose();
afx_msg void OnBtnNetmana();
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_DLGSTATEDISPLAY_H__7483D160_D52F_471B_8FEF_929E8D1C2CC0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -