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