Stats.h
资源名称:hp_snmp3.zip [点击查看]
上传用户:czjinwang
上传日期:2007-01-12
资源大小:2484k
文件大小:1k
源码类别:
SNMP编程
开发平台:
Visual C++
- // Stats.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // Stats dialog
- #include "snmp_pp.h"
- class Stats : public CDialog
- {
- // Construction
- public:
- Stats(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(Stats)
- enum { IDD = IDD_STATS };
- BOOL m_auto_refresh;
- CString m_queue;
- CString m_timeouts;
- CString m_traprec;
- CString m_trapsent;
- CString m_uided;
- CString m_decerrs;
- CString m_received;
- CString m_recerrs;
- CString m_sent;
- CString m_senterrs;
- CString m_strays;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(Stats)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- Snmp *snmp;
- virtual void PostNcDestroy()
- {
- if ( snmp != NULL)
- delete snmp;
- delete this;
- };
- long init(UINT wParam,LONG lParam);
- // Generated message map functions
- //{{AFX_MSG(Stats)
- virtual BOOL OnInitDialog();
- afx_msg void OnUpdate();
- afx_msg void OnAutorefresh();
- afx_msg void OnTimer(UINT nIDEvent);
- virtual void OnCancel();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };