LanFlowDlg.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:2k
- // LanFlowDlg.h : header file
- //
- #if !defined(AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_)
- #define AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "LineChart.h"
- #include "MyStringArray.h"
- /////////////////////////////////////////////////////////////////////////////
- // CLanFlowDlg dialog
- class CLanFlowDlg : public CDialog
- {
- // Construction
- public:
- CLanFlowDlg(CWnd* pParent = NULL); // standard constructor
- CString itoh(int m);
- CString stoh(CString s);
- // Dialog Data
- //{{AFX_DATA(CLanFlowDlg)
- enum { IDD = IDD_LANFLOW_DIALOG };
- CEdit m_community;
- CEdit m_text;
- CIPAddressCtrl m_ipadd;
- CComboBox m_port;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLanFlowDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- CLineChart *pChart;
- MyStringArray m_snmp;
- CString ip,community,index;
- CMapStringToString NameToIndex,MacToIp;
- struct Mac
- {
- int x;
- int y;
- CString str;
- };
- CArray <Mac,Mac&> ArrayMac;
- // Generated message map functions
- //{{AFX_MSG(CLanFlowDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnDestroy();
- afx_msg void OnSure();
- afx_msg void OnMAC();
- afx_msg void OnIP();
- afx_msg void OnLegend();
- afx_msg void OnPercent();
- afx_msg void OnLeft();
- afx_msg void OnRight();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LANFLOWDLG_H__B40A3387_1ECA_49C4_AAA7_FB5FAFF40DA9__INCLUDED_)