realdlg.h

来自「完整,实用的VC写的控制系统,下位分析设备采样控制系统.」· C头文件 代码 · 共 72 行

H
72
字号
// RealDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRealDlg dialog
#ifndef _REALDLG__H
#define _REALDLG__H

# include "RelayShow.h"
# include "Comm.h"

const int	nProgCtrl_MAX=10;
const int	nProgCtrl_MIN=1;
const int	nProgCtrl_STEP=1;

class CRealDlg : public CDialog
{
// Construction
public:
	CRealDlg(int nSeleStation,CCommInfo * m_pComm,CWnd * pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CRealDlg)
	enum { IDD = IDD_DIALOG_RELAY_REAL };
	CProgressCtrl	m_proWait;
	CButton	m_buttonStop;
	CButton	m_buttonStart;
	CButton	m_buttonOK;
	CRelayShow	m_RelayShow;
	//}}AFX_DATA

public:
	CString		m_strSend;
	CCommInfo	* m_pComm;

protected:

	int			m_nSeleStation;
	CTime		m_timeStart;
	long		m_lTotalSeconds;
	long		m_lTotalTimes;
	int			m_nProgCtrlCurrentPos;

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

// Implementation
public:
	void	UpdateWaitProgressCtrl();
	void	RefreshRelay(BYTE * pDataBuff);

protected:

	void	SendStartString(int  nStation);
	void	SendStopString(int  nStation);

	// Generated message map functions
	//{{AFX_MSG(CRealDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnRelayshow();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif	// _REALDLG__H

⌨️ 快捷键说明

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