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

SNMP编程

开发平台:

Visual C++

  1. // LanFlowDlg.h : header file
  2. //
  3. #if !defined(AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_)
  4. #define AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "LineChart.h"
  9. #include "MyStringArray.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CLanFlowDlg dialog
  12. class CLanFlowDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CLanFlowDlg(CWnd* pParent = NULL); // standard constructor
  17.     CString itoh(int m);
  18.     CString stoh(CString s);
  19. // Dialog Data
  20. //{{AFX_DATA(CLanFlowDlg)
  21. enum { IDD = IDD_LANFLOW_DIALOG };
  22. CEdit m_community;
  23. CEdit m_text;
  24. CIPAddressCtrl m_ipadd;
  25. CComboBox m_port;
  26. //}}AFX_DATA
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CLanFlowDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. HICON m_hIcon;
  35.     CLineChart *pChart;
  36. MyStringArray m_snmp;
  37.     CString ip,community,index;
  38. CMapStringToString NameToIndex,MacToIp;
  39. struct Mac
  40. {
  41. int x;
  42. int y;
  43. CString str;
  44. };
  45. CArray <Mac,Mac&> ArrayMac;
  46. // Generated message map functions
  47. //{{AFX_MSG(CLanFlowDlg)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  50. afx_msg void OnPaint();
  51. afx_msg HCURSOR OnQueryDragIcon();
  52. afx_msg void OnDestroy();
  53. afx_msg void OnSure();
  54. afx_msg void OnMAC();
  55. afx_msg void OnIP();
  56. afx_msg void OnLegend();
  57. afx_msg void OnPercent();
  58. afx_msg void OnLeft();
  59. afx_msg void OnRight();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_)