📄 plc_protocol_testdlg.h
字号:
// PLC_Protocol_testDlg.h : header file
//
#if !defined(AFX_PLC_PROTOCOL_TESTDLG_H__6587C09A_765C_40A4_9669_E8B310E12F38__INCLUDED_)
#define AFX_PLC_PROTOCOL_TESTDLG_H__6587C09A_765C_40A4_9669_E8B310E12F38__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPLC_Protocol_testDlg dialog
class CPLC_Protocol_testDlg : public CDialog
{
// Construction
public:
int m_iErrorCode;
char m_buffer[50];
CPLC_Protocol_testDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPLC_Protocol_testDlg)
enum { IDD = IDD_PLC_PROTOCOL_TEST_DIALOG };
CComboBox m_cmbBitDevice;
CComboBox m_cmbWordDevice;
CComboBox m_cmbDWordDevice;
CComboBox m_cmbComm;
int m_iBitNo;
int m_iBitDBblock;
int m_iBitDeviceAdd;
int m_iBitReadResult;
CString m_csCommunicationStatus;
int m_iDWordDBblock;
int m_iDWordDeviceAdd;
int m_iSlaveID;
int m_iWordDBblock;
int m_iWordDeviceAdd;
float m_fDWordReadResult;
float m_fDWordWriteValue;
CString m_csWordReadResult;
CString m_csWordWriteValue;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPLC_Protocol_testDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPLC_Protocol_testDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnOpen();
afx_msg void OnBtnClose();
afx_msg void OnBtnExit();
afx_msg void OnSelchangeCmbBitDevice();
afx_msg void OnBtnBitread();
afx_msg void OnBtnOff();
afx_msg void OnBtnOn();
afx_msg void OnSelchangeCmbWordDevice();
afx_msg void OnBtnWordread();
afx_msg void OnBtnWordwrite();
afx_msg void OnSelchangeCmbDwordDevice();
afx_msg void OnBtnDwordread();
afx_msg void OnBtnDwordwrite();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLC_PROTOCOL_TESTDLG_H__6587C09A_765C_40A4_9669_E8B310E12F38__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -