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

📄 serverstatus.h

📁 Visual C++通信编程工程实例精解(附盘)
💻 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 + -