serverstatus.h
来自「VisualC++通信编程工程实例精解 Chapter 2 Example」· C头文件 代码 · 共 47 行
H
47 行
//**************************************************************************
// Description: Dialog to display OPC server status.
// A timer updates the status while the dialog is alive.
//**************************************************************************
#ifndef _SERVERSTATUS
#define _SERVERSTATUS
class CServerStatus : public CDialog
{
// Construction
public:
CServerStatus(OPCServer& newServer, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CServerStatus)
enum { IDD = IDD_STATUS };
CString m_current;
DWORD m_groups;
DWORD m_bandwidth;
CString m_last;
CString m_start;
CString m_status;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerStatus)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void Update();
OPCServer opcServer;
// Generated message map functions
//{{AFX_MSG(CServerStatus)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?