TrafficDlg.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:2k
源码类别:

SNMP编程

开发平台:

Visual C++

  1. // TrafficDlg.h : header file
  2. //
  3. #if !defined(AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_)
  4. #define AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "LineChart.h"
  9. #include "MyStringArray.h"
  10. #include "AfxTempl.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CTrafficDlg dialog
  13. class CTrafficDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CTrafficDlg(CWnd* pParent = NULL); // standard constructor
  18.     CLineChart *pDay;
  19.     CLineChart *pWeek;
  20. MyStringArray m_snmp;
  21. struct Line
  22. {
  23. CString Index;
  24. CString Name;
  25. CString State;
  26. CString Descr;
  27. CString Ip;
  28. CString Type;
  29. CString Speed;
  30. };
  31. Line * pLine;
  32. CTypedPtrArray <CPtrArray,Line *> LineArray;
  33. CString ip,community;
  34. CString index,name,oid;
  35. unsigned long last_in,last_out,last_time; 
  36. unsigned long MaxSpeed;
  37. CStdioFile DataFile;
  38. CString fDayName,fWeekName;
  39. int DayNumber,SampleNumber;
  40. // Dialog Data
  41. //{{AFX_DATA(CTrafficDlg)
  42. enum { IDD = IDD_TRAFFIC_DIALOG };
  43. CEdit m_community;
  44. CIPAddressCtrl m_ipadd;
  45. CListCtrl m_list1;
  46. //}}AFX_DATA
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CTrafficDlg)
  49. protected:
  50. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. HICON m_hIcon;
  55. // Generated message map functions
  56. //{{AFX_MSG(CTrafficDlg)
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  59. afx_msg void OnPaint();
  60. afx_msg HCURSOR OnQueryDragIcon();
  61. afx_msg void OnDestroy();
  62. afx_msg void OnScan();
  63. afx_msg void OnSure();
  64. afx_msg void OnModify();
  65. afx_msg void OnStart();
  66. afx_msg void OnTimer(UINT nIDEvent);
  67. afx_msg void OnEnd();
  68. afx_msg void OnWorkData();
  69. afx_msg void OnOpenFile();
  70. afx_msg void OnToLeft();
  71. afx_msg void OnToRight();
  72. afx_msg void OnChangeUse();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_)