📄 realdlg.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -