⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settingsdlg.h

📁 工业强度的PLC模拟程序
💻 H
字号:
// @dlg
//
// @module		SettingsDlg.h
//
//
// Maintenance:
//	
// Version		Date		Who		What
// -------		--------	---		-------------------------------------
// 7.0			06/01/97	jra		Created
// 7.1			04/30/98	mvs		Added TCP/IP Support
// 7.1			05/20/98	mvs		Added UDP Support
//

// Prevent multiple inclusion
#if !defined(AFX_SETTINGSDLG_H__C8DD8F2B_038F_11D1_B77E_0060971E5E37__INCLUDED_)
#define AFX_SETTINGSDLG_H__C8DD8F2B_038F_11D1_B77E_0060971E5E37__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000


// SettingsDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSettingsDlg dialog

class CSettingsDlg : public CDialog
{
public:
	friend class CItkPlcDlg;


	CSettingsDlg(CWnd* pParent = NULL);   // standard constructor
	
	BOOL    OnInitDialog(void);
	DWORD   IsSerial(void);
	DWORD   IsTcpIp(void);
	DWORD   IsUdpIp(void);

	void	SetProtocol(DWORD);

	CString GetPortName(void);
	void	SetPortName(CString);
	CString GetPortMode(void);
	void	SetPortMode(CString);
	CString GetIpAddress(void);
	void	SetIpAddress(CString);
	UINT    GetPortNumber(void);
	void    SetPortNumber(UINT);
	BOOL	GetSendUnsol(void);
	void	SetSendUnsol(BOOL);
	UINT	GetRemoteStation(void);
	void	SetRemoteStation(UINT);
	UINT	GetLocalStation(void);
	void	SetLocalStation(UINT);
	UINT	GetUnsolFrequency(void);
	void	SetUnsolFrequency(UINT);
	CString GetSerialParams(void);
	void	SetSerialParams(CString);

	inline BOOL	IsUsingSourceStation(void) { return m_source_station; }
	inline BOOL	IsUsingTransactionNumbers(void) { return m_transaction_num; }


	//{{AFX_DATA(CSettingsDlg)
	enum { IDD = IDD_SETTINGS_DIALOG };
	CButton	m_SourceStation;
	CButton	m_TransactionNum;
	CButton	m_SendUnsol;
	CEdit	m_RemoteStation;
	CEdit	m_PortNumber;
	CComboBox	m_PortName;
	CEdit	m_UnsolFreq;
	CComboBox	m_StopBits;
	CComboBox	m_Parity;
	CEdit	m_IPAddress;
	CComboBox	m_DataBits;
	CComboBox	m_BaudRate;
	BOOL	m_serial;
	BOOL	m_tcpip;
	CString	m_ip_address;
	UINT	m_port_number;
	BOOL	m_send_unsolicited;
	UINT	m_local_station;
	UINT	m_remote_station;
	UINT	m_unsol_frequency;
	CString	m_port_name;
	CString	m_baud_rate;
	CString	m_data_bits;
	CString	m_parity;
	CString	m_stop_bits;
	BOOL	m_source_station;
	BOOL	m_transaction_num;
	BOOL	m_udpip;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

protected:
	void EnableProtocolWindows(DWORD);

	// Generated message map functions
	//{{AFX_MSG(CSettingsDlg)
	afx_msg void OnSerialCheckbox();
	afx_msg void OnTcpipCheckbox();
	afx_msg void OnChangeIpAddress();
	afx_msg void OnChangePortNumber();
	afx_msg void OnUnsolicitedCheck();
	virtual void OnOK();
	afx_msg void OnSourceCheck();
	afx_msg void OnTransactionCheck();
	afx_msg void OnUdpipCheckbox();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
};

#endif // !defined(AFX_SETTINGSDLG_H__C8DD8F2B_038F_11D1_B77E_0060971E5E37__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -