TrafficDlg.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:2k
- // TrafficDlg.h : header file
- //
- #if !defined(AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_)
- #define AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "LineChart.h"
- #include "MyStringArray.h"
- #include "AfxTempl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CTrafficDlg dialog
- class CTrafficDlg : public CDialog
- {
- // Construction
- public:
- CTrafficDlg(CWnd* pParent = NULL); // standard constructor
- CLineChart *pDay;
- CLineChart *pWeek;
- MyStringArray m_snmp;
- struct Line
- {
- CString Index;
- CString Name;
- CString State;
- CString Descr;
- CString Ip;
- CString Type;
- CString Speed;
- };
- Line * pLine;
- CTypedPtrArray <CPtrArray,Line *> LineArray;
- CString ip,community;
- CString index,name,oid;
- unsigned long last_in,last_out,last_time;
- unsigned long MaxSpeed;
- CStdioFile DataFile;
- CString fDayName,fWeekName;
- int DayNumber,SampleNumber;
- // Dialog Data
- //{{AFX_DATA(CTrafficDlg)
- enum { IDD = IDD_TRAFFIC_DIALOG };
- CEdit m_community;
- CIPAddressCtrl m_ipadd;
- CListCtrl m_list1;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTrafficDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CTrafficDlg)
- 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 OnScan();
- afx_msg void OnSure();
- afx_msg void OnModify();
- afx_msg void OnStart();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnEnd();
- afx_msg void OnWorkData();
- afx_msg void OnOpenFile();
- afx_msg void OnToLeft();
- afx_msg void OnToRight();
- afx_msg void OnChangeUse();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TRAFFICDLG_H__42929D8C_B3C2_419B_9C8F_37BB472D8E34__INCLUDED_)