commparameters.h
来自「一个modbus协议的opc server」· C头文件 代码 · 共 71 行
H
71 行
#if !defined(AFX_COMMPARAMETERS_H__598A7320_F984_11D1_9E7B_08C003C10000__INCLUDED_)
#define AFX_COMMPARAMETERS_H__598A7320_F984_11D1_9E7B_08C003C10000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CommParameters.h : header file
//
#include "resource.h"
#include "localmodbus.h"
/////////////////////////////////////////////////////////////////////////////
// CCommParameters dialog
class CCommParameters : public CDialog
{
// Construction
public:
BOOL SaveParameters();
// void Connection(CConnection* pConnection);
// CConnection* Connection();
BOOL ShowParameters();
void LoadCombos();
CCommParameters(CWnd* pParent = NULL); // standard constructor
BOOL m_bModeNew;
CLocalModbus *m_pLModbus;
// Dialog Data
//{{AFX_DATA(CCommParameters)
enum { IDD = IDD_MOD_LOCAL_COM_PARAM };
CEdit m_edtDelay;
CButton m_chkActive;
CEdit m_edtCharInterval;
CEdit m_edtTimeOut;
CComboBox m_cboByteSize;
CComboBox m_cboStopBits;
CComboBox m_cboParity;
CComboBox m_cboPorta;
CComboBox m_cboBaudRate;
BOOL m_bDTRDSR;
BOOL m_bRTSCTS;
BOOL m_bXONXOFF;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCommParameters)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CCommParameters)
virtual BOOL OnInitDialog();
afx_msg void OnOkey();
virtual void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMMPARAMETERS_H__598A7320_F984_11D1_9E7B_08C003C10000__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?